Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
strue
Browse files Browse the repository at this point in the history
  • Loading branch information
moander committed Feb 6, 2020
1 parent 68ed12d commit c7ee814
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/index.js
Expand Up @@ -22,3 +22,10 @@ export function firstDuplicateBy(array, fn) {
vals.add(val);
}
}

export function strue(value) {
if (value && value !== '0' && value !== 'false') {
return true;
}
return false;
}

0 comments on commit c7ee814

Please sign in to comment.