When trying to invoke update function the error below was showed to me:
Cannot match against 'undefined' or 'null'.
The problem was happening on destructuring present in line 87, after debugging I found out that the array of functions had an undefined item because inside the function's I had a .DS_Store file.
[undefined, { ... }, { ... }]
My proposal is to filter results right away after readdsync map instruction.
Related to #5
When trying to invoke
update
function the error below was showed to me:The problem was happening on
destructuring
present in line87
, after debugging I found out that the array of functions had anundefined
item because inside thefunction's
I had a.DS_Store
file.My proposal is to filter results right away after readdsync map instruction.