allow util.arrayify to take arbitrary types and coerce it into an array - #1398
This commit is contained in:
@@ -88,7 +88,7 @@ export function arrayify(val: any, mapFn?: Function): Array {
|
||||
return val;
|
||||
}
|
||||
|
||||
throw new TypeError("illegal type for arrayify");
|
||||
return [val];
|
||||
}
|
||||
|
||||
export function booleanify(val: any): boolean {
|
||||
|
||||
Reference in New Issue
Block a user