oracle-decode

1.0.1 • Public • Published

模仿 oracle 的 decode 函数

let args = [1, 'value1', NaN, 'valueNaN', null, 'valueNull', 'defaultValue']

decode(1, ...args) // => 'value1'
decode(NaN, ...args) // => 'valueNan'
decode('not in', ...args) // => 'defaultValue'

Readme

Keywords

none

Package Sidebar

Install

npm i oracle-decode

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

1.35 kB

Total Files

5

Last publish

Collaborators

  • liqiang2018