This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
visit = function*(obj, fn) | |
WARN: Not really tested. | |
Visits a data structure recursively, running transformation fn*(x) on each property. | |
Returns a transformed data structure. | |
Params: | |
obj: Object to visit |
NewerOlder