# lodash-fp **Repository Path**: mirrors_fis-components/lodash-fp ## Basic Information - **Project Name**: lodash-fp - **Description**: Fork from https://github.com/lodash-archive/lodash-fp - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-01-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # lodash-fp v0.10.2 [lodash](https://lodash.com/) with auto-curried iteratee-first data-last methods. ## Installation Using bower: ```bash $ bower i lodash-fp#0.10.2 ``` In browsers: ```html ``` Using npm: ```bash $ {sudo -H} npm i -g npm $ npm i --save lodash-fp ``` In Node.js/io.js: ```js var _ = require('lodash-fp'); var items = [ { 'value': _.constant(['a', 'b']) }, { 'value': _.constant(['b', 'c']) } ]; var getValues = _.flow( _.map(_.result('value')), _.flatten, _.uniq ); getValues(items); // => ['a', 'b', 'c'] // shortcut fusion is supported too var combined = _.flow( _.map(function(value) { console.log('map'); return value * value; }), _.filter(function(value) { console.log('filter'); return value % 2 == 0; }), _.take(2) ); combined(_.range(0, 200)); // logs map, filter, map, filter, map, filter // => [0, 4] ``` See the [package source](https://github.com/lodash/lodash-fp/tree/0.10.2) for more details. **Note:**
Don’t assign values to the [special variable](http://nodejs.org/api/repl.html#repl_repl_features) `_` when in the REPL.
Install [n_](https://www.npmjs.com/package/n_) for a REPL that includes lodash by default.