as-array-search
v1.0.2
Published
Search An Array For Data In AssemblyScript
Downloads
3
Maintainers
Readme
Search-Data
Search An Array For Data
About
- AssemblyScript Compatible
- Isomorphic (Browser / Node)
- Not case-sensitive
Installation
~ npm install as-array-search --save
Usage
Basic Usage
import { search } from 'as-array-search'
const toSearch = ['Hello World', 'This is Awesome', 'The World Is Crazy']
const results = search(toSearch, 'world')
//=> ['Hello World', 'The World Is Crazy']
API
search(array: Array, search: string) -->> Array
Search an array for a search-string and return results as an array.