Skip to content

Commit 750c967

Browse files
Update exemplar.js
1 parent e28b1ed commit 750c967

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/concept/recycling-robot/.meta/exemplar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function isBoolean(value) {
2525
export function isNumber(value) {
2626
return (
2727
(typeof value === 'number' || typeof value === 'bigint') &&
28-
!isNaN(value) &&
28+
!isNaN(Number(value)) &&
2929
value !== Infinity
3030
);
3131
}

0 commit comments

Comments
 (0)