oracle-decode
v1.0.1
Published
```js let args = [1, 'value1', NaN, 'valueNaN', null, 'valueNull', 'defaultValue']
Downloads
4
Readme
模仿 oracle 的 decode 函数
let args = [1, 'value1', NaN, 'valueNaN', null, 'valueNull', 'defaultValue']
decode(1, ...args) // => 'value1'
decode(NaN, ...args) // => 'valueNan'
decode('not in', ...args) // => 'defaultValue'