【文件属性】:
文件名称:as-array-search:在AssemblyScript中在数组中搜索数据
文件大小:31KB
文件格式:ZIP
更新时间:2021-03-17 21:37:54
WebAssembly
搜索数据
在数组中搜索数据
关于
兼容AssemblyScript
同构(浏览器/节点)
不区分大小写
安装
~ npm install as-array-search --save
用法
基本用法
import { search } from 'as-array-search'
const toSearch = [ 'Hello World' , 'This is Awesome' , [ 'The World Is Crazy' , 'Haha' ] ]
const results = search ( toSearch , 'world' )
//=> ['Hello World', 'The World Is Crazy']
原料药
搜索(数组:数组,搜索:字符串)->>数组
在数组中搜索搜索字符串,然后以数组形式返回结果。
【文件预览】:
as-array-search-master
----.gitignore(28B)
----assembly()
--------tsconfig.json(150B)
--------index.ts(321B)
----package.json(918B)
----build()
--------.gitignore(27B)
--------optimized.wat(77KB)
--------untouched.wat(119KB)
----asconfig.json(423B)
----LICENSE(1KB)
----index.js(262B)
----README.md(591B)
----tests()
--------index.js(122B)
----pnpm-lock.yaml(950B)