JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q42455F
  • License MIT

Most used utils, almost everywhere - [lazy-cache][]d. Including simple arrayify, [isobject][], [isarray][], [is-buffer][], [is-extendable][] and [extend-shallow][].

Package Exports

  • lazy-utils

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (lazy-utils) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

lazy-utils npmjs.com The MIT License npm downloads

Most used utils, almost everywhere - lazy-cached. Including simple arrayify, isobject, isarray, is-buffer, is-extendable and extend-shallow.

code climate standard code style travis build status coverage status dependency status

Install

npm i lazy-utils --save

Usage

For more use-cases see the tests

const lazyUtils = require('lazy-utils')

.extend

Extend object a with the properties of object b. See extend-shallow for more.

Params

  • a {Mixed}
  • b {Mixed}
  • returns {Object}

.isExtendable

See is-extendable for more.

Params

  • val {Mixed}
  • returns {Boolean}

.isArray

See lazy-arrayify or isarray for more.

Params

  • val {Mixed}
  • returns {Boolean}

.isObject

Returns true if the value is an object and not an array or null. See isobject for more.

Params

  • val {Mixed}
  • returns {Boolean}

.isBuffer

Returns true if the value is a buffer. See is-buffer for more.

Params

  • val {Mixed}
  • returns {Boolean}

.arrayify

Arrayify. Returns empty array on falsey values. See lazy-arrayify for more.

Params

  • val {Mixed}
  • returns {Array}

.merge

Deeply mix the properties of objects into the first object. Like merge-deep, but doesn't clone. See mixin-deep for more.

Params

  • a {Mixed}
  • b {Mixed}
  • c {Mixed}
  • returns {Object}

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
But before doing anything, please read the CONTRIBUTING.md guidelines.

Charlike Make Reagent new message to charlike freenode #charlike

tunnckoCore.tk keybase tunnckoCore tunnckoCore npm tunnckoCore twitter tunnckoCore github