underscore.string icon indicating copy to clipboard operation
underscore.string copied to clipboard

Merge underscore.string.fp

Open esamattis opened this issue 10 years ago • 3 comments

https://github.com/stoeffel/underscore.string.fp

Following the footsteps of Lodash v4.

Make this work

import {trim} from "underscore.string/fp";

var foo = trim("_")("_foo_");
expect(foo).toBe("foo");

Precompiled files for cherry-picking would be cool too

import trim from "underscore.string/fp/trim";

Maybe as a npm prepublish script.

Like in Lodash vNext

esamattis avatar Jan 13 '16 08:01 esamattis

This would be awesome :+1:

stoeffel avatar Jan 13 '16 08:01 stoeffel

How should we handle variadic functions like f.e. camelize?

stoeffel avatar Jan 16 '16 08:01 stoeffel

This would be great for us too. Variadic functions should work the same way as lodash, and take an array or be split into multiple methods.

daedalus28 avatar Feb 14 '17 22:02 daedalus28