add guard clause to improve execution speed, this is also a great alternative to if ... else if ... ladder as it improves code readability
This modification doesn't affect the functionality of library Fuse negatively but improves performance
Tests
Modification 2
update node engine to >13 to use Fuse on the front-end as well as on the back-end, because node engines that has a version greater than 13 supports import, export statements
Modification 3
use custom exceptions instead of error messages this makes a good software design
Modification 1
add
guard clause
to improve execution speed, this is also a great alternative to if ... else if ... ladder as it improves code readabilityThis modification doesn't affect the functionality of library Fuse negatively but improves
performance
Tests
Modification 2
update
node
engine to>13
to useFuse
on the front-end as well as on the back-end, becausenode
engines that has a version greater than13
supportsimport
,export
statementsModification 3
use custom
exceptions
instead of error messages this makes a good software design