MCPcopy
hub / github.com/surmon-china/videojs-player / standardizeClass

Function standardizeClass

player/player.ts:15–18  ·  view source on GitHub ↗
(className: string | void)

Source from the content-addressed store, hash-verified

13 * ```
14 */
15const standardizeClass = (className: string | void) => {
16 const trimmed = className?.trim().replace(/\s+/g, ' ')
17 return trimmed ? trimmed.split(' ') ?? [] : []
18}
19
20export interface CreatePlayerOptions {
21 props: Props

Callers 2

createPlayerFunction · 0.85
updateClassNamesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected