1.6.0 • Published 1 year ago
@nuskin/uncle-buck v1.6.0
@nuskin/uncle-buck
uncle-buck is a compilation of useful functions.
Installing
Using npm:
npm install @nuskin/uncle-buckUsing yarn:
yarn add @nuskin/uncle-buckExample Usage
For ESM syntax, use import:
import * as ub from '@nuskin/uncle-buck'For CommonJS, use require:
const ub = require('@nuskin/uncle-buck')let obj = { a: 1, b: { c: 0}}
ub.exists(obj,'a') //returns true
ub.exists(obj,'b.c') // returns true
ub.isBoolean(false) // returns true
ub.isJSON('{"abc":true}') // returns true
ub.isNull(null) // returns true
ub.isObject('{"abc":true}') // returns false
ub.isString('my string') // returns true
ub.nvl(null,0)  // returns 0
const myfunc = async () => {
    await sleep(2000) // sleep for 2 seconds
    // do something
}
myfunc()Resources
License
This project is licensed under the MIT License - see LICENSE for details
1.6.1-ian-dts.1
1 year ago
1.6.0
2 years ago
1.6.0-esm-cjs.1
2 years ago
1.5.1-ian-101.1
2 years ago
1.5.0
3 years ago
1.4.1-ian-002.1
4 years ago
1.4.0
5 years ago
1.3.1-ian-001.1
5 years ago
1.4.0-ian-001.1
5 years ago
1.4.0-wtlt-639.1
5 years ago
1.3.0
5 years ago
1.2.2
5 years ago
1.2.2-eric-001.2
5 years ago
1.2.2-eric-001.1
5 years ago
1.2.1
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.1.0-add-isboolean.1
6 years ago
1.0.0
6 years ago