KoaHub.JS基于Node.js开发的Lodash模块化实用程序代码
</pre></h1><h1 class="package-name" style="color: rgb(51, 51, 61); font-family: Lucida Grande, Lucida Sans Unicode, Helvetica, Arial, Verdana, sans-serif;"><span class="active">lodash</span></h1><p class="package-description" style="color: rgb(51, 51, 61); font-family: Lucida Grande, Lucida Sans Unicode, Helvetica, Arial, Verdana, sans-serif; font-size: 17px; line-height: 25px;">Lodash modular utilities.</p><div id="readme" class="markdown" style="margin: 0px; color: rgb(51, 51, 61); font-family: Lucida Grande, Lucida Sans Unicode, Helvetica, Arial, Verdana, sans-serif; font-size: 17px; line-height: 25px;"><h1 id="user-content-lodash-v4164" class="deep-link package-name-redundant" style="margin: 0px; padding: 20px 0px 5px; line-height: 1.2; overflow-y: hidden;"><a target=_blank href="http://js.koahub.com/home/feature/lodash#lodash-v4164" style="color: rgba(0, 0, 0, 0.8); text-decoration: none;">lodash v4.16.4</a></h1><p style="font-size: 16px;">The <a target=_blank href="https://lodash.com/" style="font-weight: 600;">Lodash</a> library exported as <a target=_blank href="https://nodejs.org/" style="font-weight: 600;">Node.js</a> modules.</p><h2 id="user-content-installation" class="deep-link" style="color: rgba(0, 0, 0, 0.8);"><a target=_blank href="http://js.koahub.com/home/feature/lodash#installation" style="color: rgba(0, 0, 0, 0.8); text-decoration: none;">Installation</a></h2><p style="font-size: 16px;">Using npm:</p><p style="font-size: 16px;"><pre name="code" class="javascript">$ npm i -g npm
$ npm i --save lodash
In Node.js:
// Load the full build. var _ = require(lodash); // Load the core build. var _ = require(lodash/core); // Load the FP build for immutable auto-curried iteratee-first data-last methods. var fp = require(lodash/fp); // Load method categories. var array = require(lodash/array); var object = require(lodash/fp/object); // Cherry-pick methods for smaller browserify/rollup/webpack bundles. var at = require(lodash/at); var curryN = require(lodash/fp/curryN);
See the for more details.
Note: Install for Lodash use in the Node.js < 6 REPL.
Tested in Chrome 52-53, Firefox 48-49, IE 11, Edge 14, Safari 9-10, Node.js 4-6, & PhantomJS 2.1.1. Automated & test runs are available.
