@w33bletools/simpleutils

3.0.0 • Public • Published

simpleutils

Build Status

simple utilities, no dependencies

Usage

isArray(value)

Returns true or false, depending on the value being an array

isPlainObject(value)

Returns true or false, depending on the value being a plain object

isFunction(value)

Returns true or false, depending on the value being a function

isString(value)

Returns true or false, depending on the value being an string

isSymbol(value)

Returns true or false, depending on the value being a symbol

identity(value)

Returns function the value passed in as the first argument

pick(obj, fields)

Given an object and array of fields, returns an object containing all the keys in the fields array

omit(obj, fields)

Given an object and array of fields, returns an object missing all the keys in the fields array

Readme

Keywords

Package Sidebar

Install

npm i @w33bletools/simpleutils

Weekly Downloads

2

Version

3.0.0

License

MIT

Unpacked Size

5.55 kB

Total Files

6

Last publish

Collaborators

  • w33ble