Most used utils, almost everywhere - [lazy-cache][]d. Including simple arrayify, [isobject][], [isarray][], [is-buffer][], [is-extendable][] and [extend-shallow][].
npm install lazy-utils> Most used utils, almost everywhere - [lazy-cache][]d. Including simple arrayify, [isobject][], [isarray][], [is-buffer][], [is-extendable][] and [extend-shallow][].
[![code climate][codeclimate-img]][codeclimate-url] [![standard code style][standard-img]][standard-url] [![travis build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url] [![dependency status][david-img]][david-url]
npm i lazy-utils --save
`Usage
> For more use-cases see the tests`js
const lazyUtils = require('lazy-utils')
`$3
> Extend object
a with the properties of object b.
See [extend-shallow][] for more.Params
*
a {Mixed}
* b {Mixed}
* returns {Object} $3
> See [is-extendable][] for more.
Params
*
val {Mixed}
* returns {Boolean} $3
> See [lazy-arrayify][] or [isarray][] for more.
Params
*
val {Mixed}
* returns {Boolean} $3
> Returns true if the value is an object and not an array or null.
See [isobject][] for more.
Params
*
val {Mixed}
* returns {Boolean} $3
> Returns true if the value is a buffer.
See [is-buffer][] for more.
Params
*
val {Mixed}
* returns {Boolean} $3
> Arrayify. Returns empty array on falsey values.
See [lazy-arrayify][] for more.
Params
*
val {Mixed}
* returns {Array} $3
> 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} Related
- ansi-colors: Collection of ansi colors and styles. | homepage
- extend-shallow: Extend an object with the properties of additional objects. node.js/javascript util. | homepage
- is-extendable: Returns true if a value is any of the object types: array… more | homepage
- isarray: Array#isArray for older browsers | homepage
- isobject: Returns true if the value is an object and not an array… more | homepage
- lazy-arrayify: We are lazy, also [lazy-cache][]d and [browserify][]-ready - just arrayify, falsey values… more | .isArray method."" class="text-primary hover:underline" target="_blank" rel="noopener noreferrer">homepage
- lazy-chalk: Lazily load chalk, since it takes so long to load. | homepage
- lazy-globby: Lazily require globby, since it takes so long to load (because of… more | homepage.")
- limon-prev-next: Plugin for [limon][] pluggable lexer that adds prev and next methods. | prev and next` methods."" class="text-primary hover:underline" target="_blank" rel="noopener noreferrer">homepage
- limon: The pluggable JavaScript lexer. Limon = Lemon. | homepage
- postjson: Transforming JSON with plugins. | homepageContributing
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][new-message-img]][new-message-url] [![freenode #charlike][freenode-img]][freenode-url]
[![tunnckoCore.tk][author-www-img]][author-www-url] [![keybase tunnckoCore][keybase-img]][keybase-url] [![tunnckoCore npm][author-npm-img]][author-npm-url] [![tunnckoCore twitter][author-twitter-img]][author-twitter-url] [![tunnckoCore github][author-github-img]][author-github-url]
[browserify]: https://github.com/substack/node-browserify
[extend-shallow]: https://github.com/jonschlinkert/extend-shallow
[is-buffer]: https://github.com/feross/is-buffer
[is-extendable]: https://github.com/jonschlinkert/is-extendable
[isarray]: https://github.com/juliangruber/isarray
[isobject]: https://github.com/jonschlinkert/isobject
[lazy-arrayify]: https://github.com/tunnckocore/lazy-arrayify
[lazy-cache]: https://github.com/jonschlinkert/lazy-cache
[limon]: https://github.com/limonjs/limon
[npmjs-url]: https://www.npmjs.com/package/lazy-utils
[npmjs-img]: https://img.shields.io/npm/v/lazy-utils.svg?label=lazy-utils
[license-url]: https://github.com/tunnckoCore/lazy-utils/blob/master/LICENSE
[license-img]: https://img.shields.io/npm/l/lazy-utils.svg
[downloads-url]: https://www.npmjs.com/package/lazy-utils
[downloads-img]: https://img.shields.io/npm/dm/lazy-utils.svg
[codeclimate-url]: https://codeclimate.com/github/tunnckoCore/lazy-utils
[codeclimate-img]: https://img.shields.io/codeclimate/github/tunnckoCore/lazy-utils.svg
[travis-url]: https://travis-ci.org/tunnckoCore/lazy-utils
[travis-img]: https://img.shields.io/travis/tunnckoCore/lazy-utils/master.svg
[coveralls-url]: https://coveralls.io/r/tunnckoCore/lazy-utils
[coveralls-img]: https://img.shields.io/coveralls/tunnckoCore/lazy-utils.svg
[david-url]: https://david-dm.org/tunnckoCore/lazy-utils
[david-img]: https://img.shields.io/david/tunnckoCore/lazy-utils.svg
[standard-url]: https://github.com/feross/standard
[standard-img]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg
[author-www-url]: http://www.tunnckocore.tk
[author-www-img]: https://img.shields.io/badge/www-tunnckocore.tk-fe7d37.svg
[keybase-url]: https://keybase.io/tunnckocore
[keybase-img]: https://img.shields.io/badge/keybase-tunnckocore-8a7967.svg
[author-npm-url]: https://www.npmjs.com/~tunnckocore
[author-npm-img]: https://img.shields.io/badge/npm-~tunnckocore-cb3837.svg
[author-twitter-url]: https://twitter.com/tunnckoCore
[author-twitter-img]: https://img.shields.io/badge/twitter-@tunnckoCore-55acee.svg
[author-github-url]: https://github.com/tunnckoCore
[author-github-img]: https://img.shields.io/badge/github-@tunnckoCore-4183c4.svg
[freenode-url]: http://webchat.freenode.net/?channels=charlike
[freenode-img]: https://img.shields.io/badge/freenode-%23charlike-5654a4.svg
[new-message-url]: https://github.com/tunnckoCore/ama
[new-message-img]: https://img.shields.io/badge/ask%20me-anything-green.svg
[mixin-deep]: https://github.com/jonschlinkert/mixin-deep