Sha256: d1777c9cb2952ce3713a87be558b7aa5ab622f910181fe515e460d76b4d9e50f
Contents?: true
Size: 532 Bytes
Versions: 34
Compression:
Stored size: 532 Bytes
Contents
'use strict'; module.exports = { isObject: function(obj) { var type = typeof obj; return type === 'function' || type === 'object' && !!obj; } , extend: function(obj) { if (!this.isObject(obj)) { return obj; } var source, prop; for (var i = 1, length = arguments.length; i < length; i++) { source = arguments[i]; for (prop in source) { if (Object.prototype.hasOwnProperty.call(source, prop)) { obj[prop] = source[prop]; } } } return obj; } };
Version data entries
34 entries across 33 versions & 12 rubygems