The third argument of both functions is returned without being defaulted. This means that the functions are returning "undefined" (sometimes) when they should be returning "false".
Unless strict "if" statements are used with those helper functions, the code will work as expected, but I feel this is kind of dirty.
Should I submit a PR to default the third argument to false? (arg3 = arg3 || false will do it)
@obeliskos
The third argument of both functions is returned without being defaulted. This means that the functions are returning "undefined" (sometimes) when they should be returning "false".
Unless strict "if" statements are used with those helper functions, the code will work as expected, but I feel this is kind of dirty.
Should I submit a PR to default the third argument to
false? (arg3 = arg3 || falsewill do it)@obeliskos