File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ export const ObjectKeys = Object.keys.bind(Object);
22export const isBool = ( value : unknown ) : value is boolean => typeof value == 'boolean' ;
33export const isString = ( value : unknown ) : value is string => typeof value == 'string' ;
44export const isNumber = ( value : unknown ) : value is number =>
5- typeof value == 'number' && ! isNaN ( value as number ) && Number . isFinite ( value ) ;
5+ typeof value == 'number' && Number . isFinite ( value ) ;
66
77export function isPlainObject ( maybeObject : any ) : maybeObject is Record < string , any > {
88 return (
@@ -30,7 +30,3 @@ export function toObj(value: any) {
3030 ? value
3131 : ( { } as Record < string , any > ) ;
3232}
33-
34- export function normalizeResult ( result : Record < string , any > ) {
35- return ObjectKeys ( result ) . length <= 0 ? null : result ;
36- }
You can’t perform that action at this time.
0 commit comments