//////////////////////////////////// // // A companion to oK which bridges // the gap between k-values and // native JavaScript types. // // John Earnest // //////////////////////////////////// // // See ok-license.txt for the license. // Modified by zgrep because zgrep is just that annoying. "use strict"; function tok(v) { if (typeof v == 'number') { return { t:0, v:v }; } if (v === false) { return { t:0, v:0 }; } if (v === true) { return { t:0, v:1 }; } if (typeof v == 'string') { var r = []; for(var z=0;z