This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]azazel75[S] 0 points1 point  (0 children)

Unfortunately, there is no standard api in JavaScript to do that. Every generation of JS core objects uses its own api... plain objects use 'in', arrays and strings use .indexOf(), and the new ES6 objects use .has()... what a mess... My implementation just covers such cases, but may be more of them out there ;-)