MCPcopy
hub / github.com/Splidejs/splide / is

Function is

src/js/constructors/State/State.ts:41–43  ·  view source on GitHub ↗

* Checks if the current state matches the provided one. * * @param states - A state to check. * * @return `true` if the current state is the provided one.

( states: number | number[] )

Source from the content-addressed store, hash-verified

39 * @return `true` if the current state is the provided one.
40 */
41 function is( states: number | number[] ): boolean {
42 return includes( toArray( states ), state );
43 }
44
45 return { set, is };
46}

Callers

nothing calls this directly

Calls 2

includesFunction · 0.90
toArrayFunction · 0.90

Tested by

no test coverage detected