first commit
This commit is contained in:
23
node_modules/stylelint/lib/utils/isOnlyWhitespace.cjs
generated
vendored
Normal file
23
node_modules/stylelint/lib/utils/isOnlyWhitespace.cjs
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
// NOTICE: This file is generated by Rollup. To modify it,
|
||||
// please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
|
||||
'use strict';
|
||||
|
||||
const isWhitespace = require('./isWhitespace.cjs');
|
||||
|
||||
/**
|
||||
* Returns a Boolean indicating whether the input string is only whitespace.
|
||||
*
|
||||
* @param {string} input
|
||||
* @returns {boolean}
|
||||
*/
|
||||
function isOnlyWhitespace(input) {
|
||||
for (const element of input) {
|
||||
if (!isWhitespace(element)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
module.exports = isOnlyWhitespace;
|
||||
Reference in New Issue
Block a user