Skip to content

Commit

Permalink
feat(micro-dash): reduce size of isBoolean()
Browse files Browse the repository at this point in the history
  • Loading branch information
ersimont committed Nov 23, 2020
1 parent d441109 commit a57466a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/micro-dash/src/lib/lang/is-boolean.ts
Expand Up @@ -3,8 +3,8 @@
*
* Contribution to minified bundle size, when it is the only function imported:
* - Lodash: 693 bytes
* - Micro-dash: 62 bytes
* - Micro-dash: 56 bytes
*/
export function isBoolean(value: any): value is boolean {
return value === true || value === false;
return value === !!value;
}

0 comments on commit a57466a

Please sign in to comment.