Skip to content

afeiship/next-to-action

Repository files navigation

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.