@jswork/one2extra
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

one2extra

GGet one and extra.

version license size download

installation

npm install @jswork/one2extra

usage

import one2extra from '@jswork/one2extra';

const arr = [ 1, 2, 3 ];
const fn3 = (list)=> list.findIndex(item => item === 3);

one2extra(0, arr); // [1,[2,3]]
one2extra(1, arr); // [2,[1,3]]
one2extra(fn3, arr); // [3,[1,2]]

license

Code released under the MIT license.

Package Sidebar

Install

npm i @jswork/one2extra

Weekly Downloads

38

Version

1.0.1

License

MIT

Unpacked Size

5.27 kB

Total Files

8

Last publish

Collaborators

  • afeiship