Closed nathan closed 7 years ago
Love it. Thanks Nathan!
EDIT: Actually, for ordinary objects [[OwnPropertyKeys]] returns non-integer own property String keys in creation order. So when you call Reflect.ownKeys or Object.getOwnPropertyNames (but not Object.keys) you get the correct order. for-in loops are terrible anyway.
I'd have thought it follows that we should be using Object.getOwnPropertyNames
instead of Object.keys
here. But I trust you to do the right thing. :)
I'd have thought it follows that we should be using Object.getOwnPropertyNames instead of Object.keys here. But I trust you to do the right thing. :)
Um, no, you're right, it should definitely be Object.getOwnPropertyNames
. Sorry about that. #10.
Property names are token names, and property values are regular expressions, e.g.:
Closes tjvr/moo#7.