hlp::pick:js中与字符串相关的函数的集合。 :pick:

时间:2024-05-27 12:52:50
【文件属性】:

文件名称:hlp::pick:js中与字符串相关的函数的集合。 :pick:

文件大小:160KB

文件格式:ZIP

更新时间:2024-05-27 12:52:50

javascript JavaScript

动机 厌倦了写作 if ( Object . keys ( obj ) . length === 0 && obj . constructor === Object ) { } 或者 if ( typeof arr !== 'undefined' && arr . length > 0 ) { } 或者 for ( const [ obj__key , obj__value ] of Object . entries ( obj ) ) { } ? 安装 npm init -y npm install hlp 现在直接将其嵌入: < script src =" hlp.js " > </ script > 或将其用作模块: import hlp from 'hlp' ; 用法 存在 // check existence if ( hlp . x ( vrbl ) ) { } /


【文件预览】:
hlp-master
----.babelrc(318B)
----package.json(4KB)
----.prettierignore(9B)
----hlp.js(165KB)
----.eslintrc.js(508B)
----_js()
--------_build()
--------script.js(74KB)
----_build()
--------bundle.js(43KB)
----.gitignore(59B)
----README.md(37KB)
----_tests()
--------2.jpg(13KB)
--------1.jpg(11KB)
--------index.html(54KB)
--------Helper.html(7KB)
--------_js()

网友评论