We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 236a0b9 commit 27399eaCopy full SHA for 27399ea
src/parseStyleName.js
@@ -4,13 +4,13 @@ const styleNameIndex = {};
4
5
export default (styleNamePropertyValue: (string|array), allowMultiple: boolean): Array<string> => {
6
let styleNames;
7
- let isArray = Array.isArray(styleNamePropertyValue)
+ let isArray = _.isArray(styleNamePropertyValue)
8
9
if (!isArray && styleNameIndex[styleNamePropertyValue]) {
10
styleNames = styleNameIndex[styleNamePropertyValue];
11
} else {
12
styleNames = isArray
13
- ? styleNamePropertyValue.filter(styleNameItem => typeof styleNameItem === 'string')
+ ? _.filter(styleNamePropertyValue, styleNameItem => typeof styleNameItem === 'string')
14
: _.trim(styleNamePropertyValue).split(' ');
15
styleNames = _.filter(styleNames);
16
0 commit comments