rubico
Version:
[a]synchronous functional programming
21 lines (17 loc) • 607 B
JavaScript
/**
* rubico v2.6.2
* https://github.com/a-synchronous/rubico
* (c) 2019-2024 Richard Tong
* rubico may be freely distributed under the MIT license.
*/
(function (root, isString) {
if (typeof module == 'object') (module.exports = isString) // CommonJS
else if (typeof define == 'function') define(() => isString) // AMD
else (root.isString = isString) // Browser
}(typeof globalThis == 'object' ? globalThis : this, (function () { 'use strict'
const isString = function (value) {
return typeof value == 'string'
|| (value != null && value.constructor == String)
}
return isString
}())))