A question though, would this be equivalent to == or === matching for specific values? Namely does {b: 5} match with a passed in object that has {b:'5'}? Sebastian Yes :)
This is roughly what I had in mind: match obj with {a, b : 5} -> return a + b {a, c : {d, e : true}} -> return a + d 'rof' -> return 'lol' Where the first clause matches if obj has the property a and the property b that has the value 5. The second clause works the same but recursively. And the third simply checks if obj is equal to 'rof'. Den 30 juni 2017 16:46 skrev "Sebastian Malton" <[email protected]>:
| ||||
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

