Skip to content

It provides search in all depths of arrays, objects or array objects.

Notifications You must be signed in to change notification settings

mahiraltinkaya/array-object-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

It provides search in all depths of arrays, objects or array objects.

Resources

Stars

Watchers

Forks

Packages

No packages published