Migrated tests to jest
Used jest-codemods to migrate, will have to pass everything by hand before we can merge.
This commit is contained in:
5
test3/inRange/inRange.js
Normal file
5
test3/inRange/inRange.js
Normal file
@ -0,0 +1,5 @@
|
||||
const inRange = (n, start, end = null) => {
|
||||
if (end && start > end) end = [start, (start = end)][0];
|
||||
return end == null ? n >= 0 && n < start : n >= start && n < end;
|
||||
};
|
||||
module.exports = inRange;
|
||||
Reference in New Issue
Block a user