mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
changing include to use === instead of ==
This commit is contained in:
2
underscore-min.js
vendored
2
underscore-min.js
vendored
File diff suppressed because one or more lines are too long
@@ -8,6 +8,8 @@
|
|||||||
window._ = {
|
window._ = {
|
||||||
|
|
||||||
VERSION : '0.1.0',
|
VERSION : '0.1.0',
|
||||||
|
|
||||||
|
/*------------------------ Collection Functions: ---------------------------*/
|
||||||
|
|
||||||
// The cornerstone, an each implementation.
|
// The cornerstone, an each implementation.
|
||||||
// Handles objects implementing forEach, each, arrays, and raw objects.
|
// Handles objects implementing forEach, each, arrays, and raw objects.
|
||||||
@@ -200,7 +202,7 @@ window._ = {
|
|||||||
return _.toArray(obj).length;
|
return _.toArray(obj).length;
|
||||||
},
|
},
|
||||||
|
|
||||||
//------------- The following methods only apply to arrays. -----------------
|
/*-------------------------- Array Functions: ------------------------------*/
|
||||||
|
|
||||||
// Get the first element of an array.
|
// Get the first element of an array.
|
||||||
first : function(array) {
|
first : function(array) {
|
||||||
@@ -272,7 +274,7 @@ window._ = {
|
|||||||
return -1;
|
return -1;
|
||||||
},
|
},
|
||||||
|
|
||||||
/* -------------- The following methods apply to functions -----------------*/
|
/* ----------------------- Function Functions: -----------------------------*/
|
||||||
|
|
||||||
// Create a function bound to a given object (assigning 'this', and arguments,
|
// Create a function bound to a given object (assigning 'this', and arguments,
|
||||||
// optionally). Binding with arguments is also known as 'curry'.
|
// optionally). Binding with arguments is also known as 'curry'.
|
||||||
@@ -318,7 +320,7 @@ window._ = {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
/* ---------------- The following methods apply to objects ---------------- */
|
/* ------------------------- Object Functions: ---------------------------- */
|
||||||
|
|
||||||
// Retrieve the names of an object's properties.
|
// Retrieve the names of an object's properties.
|
||||||
keys : function(obj) {
|
keys : function(obj) {
|
||||||
@@ -383,7 +385,7 @@ window._ = {
|
|||||||
return typeof obj == 'undefined';
|
return typeof obj == 'undefined';
|
||||||
},
|
},
|
||||||
|
|
||||||
/* -------------- The following methods are utility methods --------------- */
|
/* -------------------------- Utility Functions: -------------------------- */
|
||||||
|
|
||||||
// Generate a unique integer id (unique within the entire client session).
|
// Generate a unique integer id (unique within the entire client session).
|
||||||
// Useful for temporary DOM ids.
|
// Useful for temporary DOM ids.
|
||||||
|
|||||||
Reference in New Issue
Block a user