helpers-plugin
v1.0.18
Published
A typescript plugin that adds helpers for Array, Object, and other prototypes.
Downloads
1,244
Maintainers
Readme
Helpers plugin
A Javascript / Typescript plugin that adds helper functions for arrays, objects, and other prototypes or global functions, making it easier to write clean code.
🔥 Live preview here 👈
🔥 Documentation here 👈
Installation
Install via npm:
npm install helpers-plugin
Helpers Plugin Methods
Array Prototype Methods
first()
last()
findById(id)
findIndexById(id)
filterById(id)
compare(secondArray)
Types Methods
isBoolean(value)
isString(value)
isObject(value)
isArray(value)
isFunction(value)
isNumber(value)
Content Methods
isNotEmptyObject(value)
isNotEmptyArray(value)
isNotEmptyString(value)
Usage
Read more in documentation