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 package source for more details.

Note:
Install n_ 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 browser & CI test runs are available.

wemall 開源微商城 ,微信商城,商城源碼,三級分銷,微生鮮,微水果,微外賣,微訂餐---專業的o2o系統
wemall地址:http://www.wemallshop.com

發佈了0 篇原創文章 · 獲贊 1 · 訪問量 2萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章