1.0.20 • Published 10 months ago

deep-level-searching v1.0.20

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

About The Project

This project is simple javascript code for deep searching i.e., when input (array or object) is nested then it search for all the elements that matches the keyword and returns filtered data.

Getting Started

Prerequisites

This is basic js code can be implemented in frontend or backend.

Installation

Install NPM packages

 npm i deep-level-searching

Usage

1- import 'deep-level-searching'

import {deepSearch} from 'deep-level-searching';

2- Input

  • keyword -> search string
  • nested array -> array in which we have to perform searching
  • excludedKeys -> array of keys on which user does not want to perform searching
let filteredData = deepSearch(keyword,nestedArray,{excluded:excludedKeys});

Example

import {deepSearch} from 'deep-level-searching';
const keyword = 'john';
const nestedArray = [{}]
const excludedKeys = []
let filteredData = deepSearch(keyword,nestedArray,{excluded:excludedKeys});
1.0.19

10 months ago

1.0.18

10 months ago

1.0.20

10 months ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago