MCPcopy Create free account
hub / github.com/Aaaaaaaty/blog / classesToArray

Function classesToArray

Algorithm/kmp/jquery.js:7788–7796  ·  view source on GitHub ↗
( value )

Source from the content-addressed store, hash-verified

7786 }
7787
7788 function classesToArray( value ) {
7789 if ( Array.isArray( value ) ) {
7790 return value;
7791 }
7792 if ( typeof value === "string" ) {
7793 return value.match( rnothtmlwhite ) || [];
7794 }
7795 return [];
7796 }
7797
7798 jQuery.fn.extend( {
7799 addClass: function( value ) {

Callers 1

jquery.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected