4.1200.1 • Published 8 years ago

lodash-contrib v4.1200.1

Weekly downloads
3,014
License
MIT
Repository
github
Last release
8 years ago

The brass buckles on lodash's utility belt

Basically a lodash compatible fork of underscore-contrib

lodash-contrib

Build Status

Links

Why lodash-contrib?

While lodash provides a bevy of useful tools to support functional programming in JavaScript, it can't (and shouldn't) be everything to everyone. lodash-contrib is intended as a home for functions that, for various reasons, don't belong in lodash proper. In particular, it aims to be:

  • a home for functions that are limited in scope, but solve certain point problems, and
  • a proving ground for features that belong in lodash proper, but need some advocacy and/or evolution (or devolution) to get them there.

Use

####Web

First, you’ll need lodash. Then you can grab the relevant lodash-contrib libraries and simply add something like the following to your pages:

<script src="lodash.js"></script>
<script src="lodash.object.builders.js"></script>

You could also use browserify to bundle your code into a JavaScript file that you can include in a web page. Require lodash-contrib in your main script file (e.g. test.js) like so:

var _ = require('lodash-contrib');

// YOUR CODE COMES HERE
console.log(_.truthyAll(0, 1, 2, 'lodash-contrib!'));

then you could run browserify test.js -o browserified.js to get lodash, lodash-contrib and your code into browserified.js.

####Node

Just run npm install lodash-contrib, you don't need to have lodash as it will be grabbed as a dependency.

Contributing

We need some docs sync since rebasing to version 3 (some methods renamed xxxContrib)

There is still a lot of work to do around perf, documentation, examples, testing and distribution so any help in those areas is welcomed. Pull requests are accepted, but please search the issues before proposing a new sub-contrib or addition. Additionally, all patches and proposals should have strong documentation, motivating cases and tests. It would be nice if we could not only provide useful tools built on lodash, but also provide an educational experience for why and how one might use them.

Other (potentially) useful sub-contribs include the following:

  • String utilities
  • Date/time utilities
  • Validators
  • Iterators
  • Generators
  • Promises
  • Monads
  • Currying
  • Laziness
  • Multimethods

What do these mean? Well, that’s up for discussion. :-)

4.1200.1

8 years ago

4.1200.0

8 years ago

43000.0.2

8 years ago

31001.1.0

8 years ago

31001.0.0

9 years ago

31000.0.2

9 years ago

393.0.1

9 years ago

241.4.14

10 years ago

241.4.13

10 years ago

241.4.12

10 years ago

241.4.11

10 years ago

241.4.10

10 years ago

241.4.9

10 years ago

241.4.8

10 years ago

241.4.7

10 years ago

241.4.6

10 years ago

241.4.5

10 years ago

241.4.4

10 years ago

241.4.3

10 years ago

241.4.2

10 years ago

241.4.0

10 years ago

241.3.2

10 years ago

241.3.1

10 years ago

241.3.0

10 years ago

241.2.1

10 years ago

241.2.0

10 years ago

241.1.0

10 years ago

2.4.1

10 years ago