Skip to content
On this page

🚀 快速开始

安装

通过 npm 下载安装代码 请使用 forchange 镜像源

bash
$ npm install --save @forchange/utils

使用

ES6 模块

js
import { isEmptyArray } from '@forchange/utils';

isEmptyArray([]); // true

CommonJS 模块

js
var utils = require('@forchange/utils');

utils.isEmptyArray([]);

RequireJs 模块

js
requirejs(['node_modules/@forchange/utils/dist/index.aio.js'], function(utils) {
  utils.isEmptyArray([]);
});

浏览器环境

html
<script src="node_modules/@forchange/utils/dist/index.aio.js"></script>
<script>
  console.log(window['@forchange/utils'].isEmptyArray([]));
</script>

Released under the MIT License.