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

Version Path
sumomo-0.10.8 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/collection.js
sumomo-0.10.4 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/collection.js
sumomo-0.10.3 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/collection.js
sumomo-0.10.2 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/collection.js
sumomo-0.10.1 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/collection.js
sumomo-0.10.0 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/collection.js
sumomo-0.9.0 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/collection.js
sumomo-0.8.22 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/collection.js
sumomo-0.8.21 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/collection.js
sumomo-0.8.20 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/collection.js
sumomo-0.8.17 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/collection.js
sumomo-0.8.16 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/collection.js
sumomo-0.8.15 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/collection.js
sumomo-0.8.14 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/collection.js
sumomo-0.8.13 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/collection.js
sumomo-0.8.12 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/collection.js
sumomo-0.8.11 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/collection.js
sumomo-0.8.10 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/collection.js
sumomo-0.8.9 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/collection.js
sumomo-0.8.8 data/sumomo/api_modules/node_modules/aws-sdk/lib/model/collection.js