Skip to content

Commit 95bbe4a

Browse files
committed
Fixed incorrect font size config type check
1 parent e7ef43b commit 95bbe4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
const { toPx } = require('./utils');
22
const 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';
64
const isBoolean = val => typeof val === 'boolean';
75
const 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;
88
const entries = obj => Object.keys(obj).map(key => [key, obj[key]]);
99
const fromEntries = iterable =>
1010
[...iterable].reduce((obj, [key, val]) => {

0 commit comments

Comments
 (0)