Sha256: aa743d8cba8290c0881366f60520b7a2bcc6104f73d4e9b596c227b978213193

Contents?: true

Size: 981 Bytes

Versions: 39

Compression:

Stored size: 981 Bytes

Contents

/*!
 * assign-symbols <https://github.com/jonschlinkert/assign-symbols>
 *
 * Copyright (c) 2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */

'use strict';

module.exports = function(receiver, objects) {
  if (receiver === null || typeof receiver === 'undefined') {
    throw new TypeError('expected first argument to be an object.');
  }

  if (typeof objects === 'undefined' || typeof Symbol === 'undefined') {
    return receiver;
  }

  if (typeof Object.getOwnPropertySymbols !== 'function') {
    return receiver;
  }

  var isEnumerable = Object.prototype.propertyIsEnumerable;
  var target = Object(receiver);
  var len = arguments.length, i = 0;

  while (++i < len) {
    var provider = Object(arguments[i]);
    var names = Object.getOwnPropertySymbols(provider);

    for (var j = 0; j < names.length; j++) {
      var key = names[j];

      if (isEnumerable.call(provider, key)) {
        target[key] = provider[key];
      }
    }
  }
  return target;
};

Version data entries

39 entries across 38 versions & 12 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/assign-symbols/index.js
disco_app-0.18.0 test/dummy/node_modules/assign-symbols/index.js
disco_app-0.18.2 test/dummy/node_modules/assign-symbols/index.js
disco_app-0.16.1 test/dummy/node_modules/assign-symbols/index.js
disco_app-0.15.2 test/dummy/node_modules/assign-symbols/index.js
disco_app-0.18.4 test/dummy/node_modules/assign-symbols/index.js
disco_app-0.18.1 test/dummy/node_modules/assign-symbols/index.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/assign-symbols/index.js
disco_app-0.14.0 test/dummy/node_modules/assign-symbols/index.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/assign-symbols/index.js
tang-0.2.1 spec/tang_app/node_modules/assign-symbols/index.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/assign-symbols/index.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/assign-symbols/index.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/assign-symbols/index.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/assign-symbols/index.js
tang-0.2.0 spec/tang_app/node_modules/assign-symbols/index.js
tang-0.1.0 spec/tang_app/node_modules/assign-symbols/index.js
tang-0.0.9 spec/tang_app/node_modules/assign-symbols/index.js
enju_library-0.3.8 spec/dummy/node_modules/assign-symbols/index.js
ilog-0.4.1 node_modules/assign-symbols/index.js