fullarray-search

1.0.4 • Public • Published

fullarray-search

Javascript utility that allows for searching strings in an array based on indexing

Installation

npm i fullarray-search(https://www.npmjs.com/package/fullarray-search)`

Usage

import { FullSearch } from 'fullarray-search'
 
const sampleArray = [
  'Nickolas',
  'Gisella',
  'Babbette',
  'Jeff',
  'Finlay',
  'Marten',
  'Leonelle',
  'Bud',
  'Arleyne',
  'Norah'
]
 
const indexedArray = new FullSearch(sampleArray)
indexedArray.searchFor('e')
 
// ["Gisella", "Babbette", "Jeff", "Marten", "Leonelle", "Arleyne"]
 
indexedArray.searchFor('ne')
// ["Leonelle", "Arleyne"]

Readme

Keywords

Package Sidebar

Install

npm i fullarray-search

Weekly Downloads

1

Version

1.0.4

License

ISC

Unpacked Size

10.6 kB

Total Files

7

Last publish

Collaborators

  • navaneethvijay