Merge pull request #1724 from arthurvr/bool

Update `util.booleanify()` return type
This commit is contained in:
Sebastian McKenzie 2015-06-13 01:48:30 +01:00
commit 2d66ce5224

View File

@ -102,7 +102,7 @@ export function arrayify(val: any, mapFn?: Function): Array {
return [val];
}
export function booleanify(val: any): boolean {
export function booleanify(val: any) {
if (val === "true") return true;
if (val === "false") return false;
return val;