mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
Bump to v4.14.0.
This commit is contained in:
15
_defineProperty.js
Normal file
15
_defineProperty.js
Normal file
@@ -0,0 +1,15 @@
|
||||
define(['./_getNative'], function(getNative) {
|
||||
|
||||
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
|
||||
var undefined;
|
||||
|
||||
/* Used to set `toString` methods. */
|
||||
var defineProperty = (function() {
|
||||
var func = getNative(Object, 'defineProperty'),
|
||||
name = getNative.name;
|
||||
|
||||
return (name && name.length > 2) ? func : undefined;
|
||||
}());
|
||||
|
||||
return defineProperty;
|
||||
});
|
||||
Reference in New Issue
Block a user