Skip to content

Objects with Array.prototype on their proto chain are isMoreListLikeThanMapLike

Choose a tag to compare

@justinbmeyer justinbmeyer released this 17 Nov 23:03
· 173 commits to master since this release
var MyArray = function(values) {
	this.push.apply(this, values);
};
MyArray.prototype = Object.create(Array.prototype);
MyArray.prototype.constructor = MyArray;
var arr = new MyArray();
typeReflections.isMoreListLikeThanMapLike(arr) //-> true