@alimert/testcase01
v1.0.2
Published
testcase 01
Downloads
3
Readme
Task
Move function moves a file to a folder.
DISCLAIMER: Solution 1 - 2
Solution 1: Performance based approach, runs extremely fast. Solution 2: Object oriented approach, I aimed for higher code quality. Slightly slower.
Performance
Both solution 1 and solution 2 is fast, solution 1 is faster because it only does 2 passes or less. Instantiation costs may have effected the tests.
Tests
All passing with additional tests
External use as package
npm i @alimert/testcase01
import FileManager from "@alimert/testcase01"