Sha256: a06589197d2633faf57d3f7a7f2d6465bbac3f746e3e412e572fe4fde53ce6b4
Contents?: true
Size: 485 Bytes
Versions: 35
Compression:
Stored size: 485 Bytes
Contents
var memoizedProperty = require('../util').memoizedProperty; function memoize(name, value, fn, nameTr) { memoizedProperty(this, nameTr(name), function() { return fn(name, value); }); } function Collection(iterable, options, fn, nameTr) { nameTr = nameTr || String; var self = this; for (var id in iterable) { if (Object.prototype.hasOwnProperty.call(iterable, id)) { memoize.call(self, id, iterable[id], fn, nameTr); } } } module.exports = Collection;
Version data entries
35 entries across 35 versions & 1 rubygems