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

Most of the used mostly everywhere utils: extend-shallow, isobject, is-extendable (used in extend-shallow), isarray and arrayify (using lazy-arrayify package), all of them lazy-cached.
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 objectb
. See extend-shallow for more.
Params
a
{Mixed}b
{Mixed}
.isExtendable
See is-extendable for more.
Params
val
{Mixed}
.isArray
See lazy-arrayify or isarray for more.
Params
val
{Mixed}
.isObject
Returns true if the value is an object and not an array or null. See isobject for more.
Params
val
{Mixed}
.arrayify
Arrayify. Returns empty array on falsey values. See lazy-arrayify for more.
Params
val
{Mixed}
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-cached and browserify-ready - just arrayify, falsey values… more | 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: The pluggable JavaScript lexer on per character basis. | homepage
- limon-prev-next: Plugin for limon pluggable lexer that adds
prev
andnext
methods. | homepage - postjson: Transforming JSON with plugins. | homepage
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.