All Downloads are FREE. Search and download functionalities are using the official Maven repository.

polyfills.Object.values.meta.json Maven / Gradle / Ivy

The newest version!
{"aliases":["es2017"],"browsers":{"ie":"9 - 14","ie_mob":"*","chrome":"< 54","ios_chr":"*","safari":"< 10.1","ios_saf":"*","firefox":"< 47","firefox_mob":"< 47","android":"< 51","opera":"*","op_mob":"*","op_mini":"*","samsung_mob":"*","bb":"*"},"dependencies":["Array.prototype.map","Object.defineProperty","Object.keys"],"docs":"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values","detectSource":"'values' in Object","testSource":"","baseDir":"Object/values","hasTests":true,"testsSource":"/* eslint-env mocha, browser*/\n/* global proclaim, it */\n\nit('has correct instance', function () {\n\tproclaim.isInstanceOf(Object.values, Function);\n});\n\nit('has correct argument length', function () {\n\tproclaim.equal(Object.values.length, 1);\n});\n\nit('works with objects', function () {\n\tproclaim.equal(Object.values({}).length, 0);\n\n\tproclaim.equal(Object.values({\n\t\tfoo: true\n\t}).length, 1);\n\n\tproclaim.equal(Object.values({\n\t\tfoo: true,\n\t\tbar: false\n\t}).length, 2);\n});\n\nit('works with objects containing otherwise non-enumerable keys', function () {\n\tproclaim.equal(Object.values({\n\t\ttoString: function () {}\n\t}).length, 1);\n\n\tproclaim.equal(Object.values({\n\t\tconstructor: 0,\n\t\thasOwnProperty: 0,\n\t\tisPrototypeOf: 0,\n\t\tpropertyIsEnumerable: 0,\n\t\ttoString: 0,\n\t\ttoLocaleString: 0,\n\t\tvalueOf: 0\n\t}).length, 7);\n});"}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy