Sha256: 8784c463fd79aea42f5a4a33f8d07734900ee0ea2adba907b6ab7f08623388a4

Contents?: true

Size: 352 Bytes

Versions: 40

Compression:

Stored size: 352 Bytes

Contents

// 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;
  };
};

Version data entries

40 entries across 18 versions & 7 rubygems

Version Path
ilog-0.4.1 node_modules/core-js/modules/$.collection-to-json.js
ilog-0.4.1 node_modules/core-js/library/modules/$.collection-to-json.js
ilog-0.4.0 node_modules/core-js/modules/$.collection-to-json.js
ilog-0.4.0 node_modules/core-js/library/modules/$.collection-to-json.js
ilog-0.3.3 node_modules/core-js/modules/$.collection-to-json.js
ilog-0.3.3 node_modules/core-js/library/modules/$.collection-to-json.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/fbjs/node_modules/core-js/library/modules/$.collection-to-json.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/fbjs/node_modules/core-js/modules/$.collection-to-json.js
locomotivecms-3.4.0 app/javascript/node_modules/fbjs/node_modules/core-js/modules/$.collection-to-json.js
locomotivecms-3.4.0 app/javascript/node_modules/fbjs/node_modules/core-js/library/modules/$.collection-to-json.js
cortex-0.1.3 spec/dummy/node_modules/fbjs/node_modules/core-js/library/modules/$.collection-to-json.js
cortex-0.1.3 spec/dummy/node_modules/fbjs/node_modules/core-js/modules/$.collection-to-json.js
lanes-0.8.0 node_modules/core-js/library/modules/$.collection-to-json.js
lanes-0.8.0 node_modules/core-js/modules/$.collection-to-json.js
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/core-js/modules/$.collection-to-json.js
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/core-js/library/modules/$.collection-to-json.js
xcodebuild-helper-1.2.3 externals/ios-sim-master/node_modules/core-js/modules/$.collection-to-json.js
xcodebuild-helper-1.2.3 externals/ios-sim-master/node_modules/core-js/library/modules/$.collection-to-json.js
babel-schmooze-sprockets-0.1.3 node_modules/core-js/modules/$.collection-to-json.js
babel-schmooze-sprockets-0.1.3 node_modules/core-js/library/modules/$.collection-to-json.js