UNPKG

el-beeswarm

Version:

<div style="display: flex; padding: 1rem; flex-direction: column; align-items: center; justify-content: center; height: 100vh; text-align: center; display: flex;

23 lines (18 loc) 428 B
'use strict'; const isWhitespace = require('./isWhitespace'); /** * Returns a Boolean indicating whether the the input string is only whitespace. * * @param {string} input * @returns {boolean} */ module.exports = function (input) { let isOnlyWhitespace = true; for (let i = 0, l = input.length; i < l; i++) { if (!isWhitespace(input[i])) { isOnlyWhitespace = false; break; } } return isOnlyWhitespace; };