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 2636c7b commit b968041Copy full SHA for b968041
src/lib/coerce.js
@@ -237,9 +237,7 @@ exports.valObjectMeta = {
237
otherOpts: ['regex', 'arrayOk'],
238
coerceFunction: function(v, propOut, dflt, opts) {
239
var regex = opts.regex || counterRegex(dflt);
240
- function isSubplotId(value) {
241
- return typeof value === 'string' && regex.test(value);
242
- }
+ const isSubplotId = value => typeof value === 'string' && regex.test(value);
243
if (opts.arrayOk && isArrayOrTypedArray(v) && v.length > 0 && v.every(isSubplotId)) {
244
propOut.set(v);
245
} else if(isSubplotId(v)) {
0 commit comments