Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Commit

Permalink
feat(infrastructure): Add toBoolean function to lib/common
Browse files Browse the repository at this point in the history
  • Loading branch information
trimox committed Jul 6, 2017
1 parent 69165b9 commit 23ddbc6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/common/boolean-property.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function toBoolean(value: any): boolean {
return value != null && `${value}` !== 'false';
}

0 comments on commit 23ddbc6

Please sign in to comment.