This comment is hidden because it contains spoiler information about the solution
JS: users can modify the input (object).
JS: Node v12 should be used enabled along with its appropiate assertion tools (Mocha + Chai).
JS: No sample tests
Note that you did not provide any initial values, which is generally a bad idea if you're really about functional programming.
Needs random tests
Please consider clarifying what to return when the 'pattern' is undefined in Javascript. It's not described in the description, so users have to blindly run test code to figure out a 'null' is required.
Loading collection data...
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
JS: users can modify the input (object).
JS: Node v12 should be used enabled along with its appropiate assertion tools (Mocha + Chai).
JS: No sample tests
Note that you did not provide any initial values, which is generally a bad idea if you're really about functional programming.
Needs random tests
This comment is hidden because it contains spoiler information about the solution
Please consider clarifying what to return when the 'pattern' is undefined in Javascript. It's not described in the description, so users have to blindly run test code to figure out a 'null' is required.
This comment is hidden because it contains spoiler information about the solution