File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11const { toPx } = require ( './utils' ) ;
22const Inter = require ( '../inter.json' ) ;
33
4- const isPlainObject = val => ! ! val && typeof val === 'object' && val . constructor === Object ;
5- const isArrayLike = obj => obj != null && typeof obj [ Symbol . iterator ] === 'function' ;
64const isBoolean = val => typeof val === 'boolean' ;
75const isString = val => typeof val === 'string' ;
6+ const isArrayLike = obj => obj != null && ! isString ( obj ) && typeof obj [ Symbol . iterator ] === 'function' ;
7+ const isPlainObject = val => ! ! val && typeof val === 'object' && val . constructor === Object ;
88const entries = obj => Object . keys ( obj ) . map ( key => [ key , obj [ key ] ] ) ;
99const fromEntries = iterable =>
1010 [ ...iterable ] . reduce ( ( obj , [ key , val ] ) => {
You can’t perform that action at this time.
0 commit comments