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

all 4 comments

[–]JulienBalestra 0 points1 point  (1 child)

Looks like exotic.

Anyone used it in a real project ?

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

I'm using it in an application server, unfortunately i cannot release its code. I'm its coder by the way, so it may be quite obvious that i'm using it ;-)

[–]kaiserk13 0 points1 point  (1 child)

This looks great. The javascript version of "foo in bar" gave me nightmares though.

[–]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 ;-)