Sha256: 69e9fa913a8788e937cfa42c139ec02385d8f38e3cb0931922100d9dd6791950
Contents?: true
Size: 317 Bytes
Versions: 82
Compression:
Stored size: 317 Bytes
Contents
// https://github.com/DavidBruant/Map-Set.prototype.toJSON var classof = require('./_classof'); var from = require('./_array-from-iterable'); module.exports = function (NAME) { return function toJSON() { if (classof(this) != NAME) throw TypeError(NAME + "#toJSON isn't generic"); return from(this); }; };
Version data entries
82 entries across 38 versions & 8 rubygems