MCPcopy Create free account
hub / github.com/jquery/jquery-ui / classesToArray

Function classesToArray

external/jquery-3.5.1/jquery.js:8258–8266  ·  view source on GitHub ↗
( value )

Source from the content-addressed store, hash-verified

8256}
8257
8258function classesToArray( value ) {
8259 if ( Array.isArray( value ) ) {
8260 return value;
8261 }
8262 if ( typeof value === "string" ) {
8263 return value.match( rnothtmlwhite ) || [];
8264 }
8265 return [];
8266}
8267
8268jQuery.fn.extend( {
8269 addClass: function( value ) {

Callers 1

jquery.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…