MCPcopy
hub / github.com/facebook/docusaurus / isNonEmptyArray

Function isNonEmptyArray

packages/docusaurus-utils/src/urlUtils.ts:29–30  ·  view source on GitHub ↗
(arr: string[])

Source from the content-addressed store, hash-verified

27 let hasEndingSlash = false;
28
29 const isNonEmptyArray = (arr: string[]): arr is [string, ...string[]] =>
30 arr.length > 0;
31
32 if (!isNonEmptyArray(urls)) {
33 return '';

Callers 1

normalizeUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…