PageRenderTime 18ms CodeModel.GetById 13ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/node_modules/babel-polyfill/node_modules/core-js/library/modules/_object-sap.js

https://bitbucket.org/worklabschd/bingle_customer2
JavaScript | 10 lines | 9 code | 0 blank | 1 comment | 2 complexity | b181d541ec9c654ed2bc73afd90e635f MD5 | raw file
 1// most Object methods by ES6 should accept primitives
 2var $export = require('./_export');
 3var core = require('./_core');
 4var fails = require('./_fails');
 5module.exports = function (KEY, exec) {
 6  var fn = (core.Object || {})[KEY] || Object[KEY];
 7  var exp = {};
 8  exp[KEY] = exec(fn);
 9  $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
10};