mirror of
https://github.com/OliveTin/OliveTin
synced 2025-12-19 20:45:35 +00:00
24 lines
522 B
JavaScript
24 lines
522 B
JavaScript
// 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;
|