mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
Bump to v4.0.1.
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
define(['./realNames'], function(realNames) {
|
||||
|
||||
/** Used for built-in method references. */
|
||||
var objectProto = Object.prototype;
|
||||
|
||||
/** Used to check objects for own properties. */
|
||||
var hasOwnProperty = objectProto.hasOwnProperty;
|
||||
|
||||
/**
|
||||
* Gets the name of `func`.
|
||||
*
|
||||
@@ -10,7 +16,7 @@ define(['./realNames'], function(realNames) {
|
||||
function getFuncName(func) {
|
||||
var result = (func.name + ''),
|
||||
array = realNames[result],
|
||||
length = array ? array.length : 0;
|
||||
length = hasOwnProperty.call(realNames, result) ? array.length : 0;
|
||||
|
||||
while (length--) {
|
||||
var data = array[length],
|
||||
|
||||
Reference in New Issue
Block a user