mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
react app
This commit is contained in:
11
react-app/node_modules/core-js/modules/$.collection-to-json.js
generated
vendored
Normal file
11
react-app/node_modules/core-js/modules/$.collection-to-json.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
// https://github.com/DavidBruant/Map-Set.prototype.toJSON
|
||||
var forOf = require('./$.for-of')
|
||||
, classof = require('./$.classof');
|
||||
module.exports = function(NAME){
|
||||
return function toJSON(){
|
||||
if(classof(this) != NAME)throw TypeError(NAME + "#toJSON isn't generic");
|
||||
var arr = [];
|
||||
forOf(this, false, arr.push, arr);
|
||||
return arr;
|
||||
};
|
||||
};
|
Reference in New Issue
Block a user