Newer
Older
export function uppercaseFirst(string = "") {
return string.charAt(0).toUpperCase() + string.slice(1)
}
export function lowercaseFirst(string = "") {
return string.charAt(0).toLowerCase() + string.slice(1)
export function has(obj, prop) {
try {
return Object.prototype.hasOwnProperty.call(obj, prop)
} catch (e) {
return false
}
}