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

polyfills.Object.entries.raw.js Maven / Gradle / Ivy

The newest version!

// Object.entries
Object.entries = function entries(object) {
	var keys = Object.keys(object);

	return keys
		.reduce(function(entries, key) {
			var entry = typeof key === 'string' && object.propertyIsEnumerable(key) ? [
				[key, object[key]]
			] : [];
			return entries.concat(entry);
		}, []);
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy