@mahiraltinkaya/object-search
v1.0.2
Published
Easy and lightweight search library for finding items inside an array in object, strings etc...
Downloads
2
Maintainers
Readme
Installation :
npm install @mahiraltinkaya/object-search
Usage :
const {
searchInValues,
searchInArray,
searchInObject,
searchInString,
} = require("object-serach");
searchInValues([], "stringKey"); // response []
searchInValues({ object }, "stringKey"); // true || false
searchInValues("searh in text", "stringKey"); // true
searchInValues(undefined, "stringKey"); // false
searchInValues(null, "stringKey"); // false
/* Or another functions */
searchInArray([], "stringKey"); // response []
searchInObject({}, "stringKey"); // response true || false
searchInString("string text or number", "stringKey"); // response true || false