@jswork/next-to-action

1.0.1 • Public • Published

next-to-action

Make an action callback for target.

version license size download

installation

npm install -S @jswork/next-to-action

usage

import '@jswork/next-to-action';

const trimer = nx.toAction('trim');
const list = [
  '  a',
  'b  ',
  ' c '
];

const res = list.map(trimer);

// ['a','b','c'];

license

Code released under the MIT license.

/@jswork/next-to-action/

    Package Sidebar

    Install

    npm i @jswork/next-to-action

    Weekly Downloads

    56

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    4.36 kB

    Total Files

    5

    Last publish

    Collaborators

    • afeiship