Fixed #4125 - Pass Through Props: Syntactic improvement suggestion

This commit is contained in:
mertsincan 2023-07-11 23:42:43 +01:00
parent 9cdbd621f1
commit 5f09ecd0a0
88 changed files with 110 additions and 88 deletions

View file

@ -234,6 +234,10 @@ export default {
return value !== null && Array.isArray(value);
},
isString(value) {
return value !== null && typeof value === 'string';
},
isPrintableCharacter(char = '') {
return this.isNotEmpty(char) && char.length === 1 && char.match(/\S| /);
},