fullarray-search

2019-12-04 admin

fullarray-search是什么

什么是fullarray-search,Javascript utility that allows for searching strings in an array based on indexing

fullarray-search使用教程帮助文档

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"]

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-80384.html

文章标题:fullarray-search

回到顶部