함수 iststring (variable) {return object.prototyp.tostring.call (variable) .indexof ( 'string')! = -1;} 함수 isnumeric (variable) {return! isnan (parsefloat (variable)) & isfinite (variable); {string = isstring (string) || isnumeric (문자열)? 문자열 (문자열) : ''; var code, i = 0, code_string = '', len = string.length; while (i <string.length) {code = string.charcodeat (i); code_string + = '' + string (code) .length + code; i ++; } return code_string;} 함수 stringDecode (code) {var i = 0, code_len, decode_string = ''; 코드 = 문자열 (코드); while (i <code.length) {code_len = +code.charat (i); i ++; decode_string += String.fromCharCode ( +code.substr (i, code_len)); i += code_len; } return decode_string;}