项目作者: afeiship

项目描述 :
Switch for mui.
高级语言: JavaScript
项目地址: git://github.com/afeiship/react-mui-switch.git
创建时间: 2018-07-24T14:12:14Z
项目社区:https://github.com/afeiship/react-mui-switch

开源协议:MIT License

下载


one2extra

GGet one and extra.

@jswork/one2extra"">version
license
size
@jswork/one2extra"">download

installation

  1. npm install @jswork/one2extra

usage

  1. import one2extra from '@jswork/one2extra';
  2. const arr = [ 1, 2, 3 ];
  3. const fn3 = (list)=> list.findIndex(item => item === 3);
  4. one2extra(0, arr); // [1,[2,3]]
  5. one2extra(1, arr); // [2,[1,3]]
  6. one2extra(fn3, arr); // [3,[1,2]]

license

Code released under the MIT license.