js/core/js/sccore.js
// support either JS Array or List
support either JS Array or List
support either JS Array or List
function sc_length(arr) {
   if (arr === null || arr === undefined)
      return 0;
   if (arr.length)
      return arr.length;
   if (arr.size)
      return arr.size();
   console.log("invalid array");
   return -1;
}
function sc_length ( arr ) { if ( arr === null || arr === undefined ) return 0 ; if ( arr . length ) return arr . length ; if ( arr . size ) return arr . size ( ) ; console . log ( "invalid array" ) ; return - 1 ; }
support either JS Array or List
support either JS Array or List