MCPcopy
hub / github.com/prettier/prettier / isNonEmptyArray

Function isNonEmptyArray

src/utilities/is-non-empty-array.js:5–7  ·  view source on GitHub ↗

* @param {unknown} object * @returns {object is Array }

(object)

Source from the content-addressed store, hash-verified

3 * @returns {object is Array<any>}
4 */
5function isNonEmptyArray(object) {
6 return Array.isArray(object) && object.length > 0;
7}
8
9export default isNonEmptyArray;

Callers 15

isSimpleElementFunction · 0.85
printAttributesFunction · 0.85
getEndLocationFunction · 0.85
getLastDescendantNodeFunction · 0.85
isEmptyNodeFunction · 0.85
hasLeadingCommentsFunction · 0.85
hasMiddleCommentsFunction · 0.85
hasEndCommentsFunction · 0.85
callPluginPrintFunctionFunction · 0.85
attachCommentsFunction · 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…