MCPcopy Create free account
hub / github.com/capsidjs/capsid / checkClassNamesAreStringOrNull

Function checkClassNamesAreStringOrNull

src/assert.js:17–19  ·  view source on GitHub ↗
(classNames: any)

Source from the content-addressed store, hash-verified

15 * @param {any} classNames The class names
16 */
17export function checkClassNamesAreStringOrNull (classNames: any) {
18 check(typeof classNames === 'string' || classNames == null, 'classNames must be a string or undefined/null.')
19}
20
21/**
22 * Asserts the given name is a valid component name.

Callers 2

getFunction · 0.90
initFunction · 0.90

Calls 1

checkFunction · 0.85

Tested by

no test coverage detected