MCPcopy Create free account
hub / github.com/ThatGuySam/doesitarm / isNonEmptyArray

Function isNonEmptyArray

helpers/check-types.js:13–17  ·  view source on GitHub ↗
( maybeArray )

Source from the content-addressed store, hash-verified

11}
12
13export function isNonEmptyArray ( maybeArray ) {
14 if ( !Array.isArray( maybeArray ) ) return false
15
16 return maybeArray.length > 0
17}
18
19export function isPositiveNumberString ( maybeNumber ) {
20 if ( !isString( maybeNumber ) ) return false

Callers 1

pushListContentPartFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected