tiny-underscore
鉴于ES6+越来越完善的特性,仿写并精简underscore-1.9.1.js,基于jslib-base脚手架。
使用
使用npm安装tiny-underscore
:
$ npm install tiny-underscore --save-dev
在浏览器内使用
// 引入文件:<script src="path/to/dist/index.aio.min.js"><script>
_.xxx(xxx)
es6模块规范内使用
import _ from 'tiny-underscore'
_.xxx(xxx)
Node内使用
const _ = require('tiny-underscore')
_.xxx(xxx)
欢迎大家多多Star支持。
文档
脚手架技术实现细节可前往博客从零到一开发你的专属JavaScript库
开发环境
Node8+
支持环境
IE | CH | FF | SF | OP | IOS | Android | Node |
---|---|---|---|---|---|---|---|
8+ | 29+ | 55+ | 9+ | 50+ | 9+ | 4+ | 6+ |