isstr0.mjs

import isstr from './isstr.mjs'


/**
 * 判斷是否為空字串
 *
 * Unit Test: {@link https://github.com/yuda-lyu/wsemi/blob/master/test/isstr0.test.mjs Github}
 * @memberOf wsemi
 * @param {*} v 輸入任意資料
 * @returns {Boolean} 回傳判斷布林值
 * @example
 *
 * console.log(isstr0(''))
 * // => true
 *
 * console.log(isstr0('0'))
 * // => false
 *
 * console.log(isstr0('abc125'))
 * // => false
 *
 */
function isstr0(v) {

    if (isstr(v)) {
        if (v === '') {
            return true
        }
    }
    return false
}


export default isstr0