dist/tinybind.esm.js
// Parser and tokenizer for getting the type and value from a string.
Parser and tokenizer for getting the type and value from a string.
Parser and tokenizer for getting the type and value from a string .
function parseType(string) {
  var type = PRIMITIVE;
  var value = string;
  if (QUOTED_STR.test(string)) {
    value = string.slice(1, -1);
  } else if (string === 'true') {
    value = true;
  } else if (string === 'false') {
    value = false;
  } else if (string === 'null') {
    value = null;
  } else if (string === 'undefined') {
    value = undefined;
  } else if (!isNaN(string)) {
    value = Number(string);
  } else {
    type = KEYPATH;
  }
  return {
    type: type,
    value: value
  };
} 
function parseType ( string ) { var type = PRIMITIVE ; var value = string ; if ( QUOTED_STR . test ( string ) ) { value = string . slice ( 1 , - 1 ) ; } else if ( string === 'true' ) { value = true ; } else if ( string === 'false' ) { value = false ; } else if ( string === 'null' ) { value = null ; } else if ( string === 'undefined' ) { value = undefined ; } else if ( ! isNaN ( string ) ) { value = Number ( string ) ; } else { type = KEYPATH ; } return { type : type , value : value } ; }
Parser and tokenizer for getting the type and value from a string.
Parser and tokenizer for getting the type and value from a string .
// Template parser and tokenizer for mustache-style text content bindings.