aggiunti componenti bower/node

This commit is contained in:
Samuele E. Locatelli
2016-10-03 10:53:40 +02:00
parent 2b20f8fd94
commit 77f390460f
2590 changed files with 343529 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
var constant = require('./constant'),
identity = require('./identity'),
nativeDefineProperty = require('./_nativeDefineProperty');
/**
* The base implementation of `setToString` without support for hot loop shorting.
*
* @private
* @param {Function} func The function to modify.
* @param {Function} string The `toString` result.
* @returns {Function} Returns `func`.
*/
var baseSetToString = !nativeDefineProperty ? identity : function(func, string) {
return nativeDefineProperty(func, 'toString', {
'configurable': true,
'enumerable': false,
'value': constant(string),
'writable': true
});
};
module.exports = baseSetToString;