mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Add isNonEmptyArray helper
This commit is contained in:
parent
7a054278aa
commit
3625d89949
1 changed files with 6 additions and 0 deletions
|
|
@ -10,6 +10,12 @@ export function isNonEmptyString ( maybeString ) {
|
|||
return maybeString.length > 0
|
||||
}
|
||||
|
||||
export function isNonEmptyArray ( maybeArray ) {
|
||||
if ( !Array.isArray( maybeArray ) ) return false
|
||||
|
||||
return maybeArray.length > 0
|
||||
}
|
||||
|
||||
export function isPositiveNumberString ( maybeNumber ) {
|
||||
if ( !isString( maybeNumber ) ) return false
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue