{ "type": "Program", "body": [ { "type": "ImportDeclaration", "specifiers": [ { "type": "ImportDefaultSpecifier", "local": { "type": "Identifier", "name": "Str", "range": [ 7, 10 ], "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 10 } } }, "range": [ 7, 10 ], "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 10 } } } ], "source": { "type": "Literal", "value": "./string", "raw": "'./string'", "range": [ 16, 26 ], "loc": { "start": { "line": 1, "column": 16 }, "end": { "line": 1, "column": 26 } } }, "range": [ 0, 27 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 27 } } }, { "type": "ExportDefaultDeclaration", "declaration": { "type": "ObjectExpression", "properties": [ { "type": "Property", "key": { "type": "Identifier", "name": "ignoreCase", "range": [ 52, 62 ], "loc": { "start": { "line": 4, "column": 3 }, "end": { "line": 4, "column": 13 } } }, "value": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "a", "range": [ 63, 64 ], "loc": { "start": { "line": 4, "column": 14 }, "end": { "line": 4, "column": 15 } } }, { "type": "Identifier", "name": "b", "range": [ 66, 67 ], "loc": { "start": { "line": 4, "column": 17 }, "end": { "line": 4, "column": 18 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "x", "range": [ 83, 84 ], "loc": { "start": { "line": 5, "column": 12 }, "end": { "line": 5, "column": 13 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Str", "range": [ 87, 90 ], "loc": { "start": { "line": 5, "column": 16 }, "end": { "line": 5, "column": 19 } } }, "property": { "type": "Identifier", "name": "lower", "range": [ 91, 96 ], "loc": { "start": { "line": 5, "column": 20 }, "end": { "line": 5, "column": 25 } } }, "range": [ 87, 96 ], "loc": { "start": { "line": 5, "column": 16 }, "end": { "line": 5, "column": 25 } } }, "arguments": [ { "type": "Identifier", "name": "a", "range": [ 97, 98 ], "loc": { "start": { "line": 5, "column": 26 }, "end": { "line": 5, "column": 27 } } } ], "range": [ 87, 99 ], "loc": { "start": { "line": 5, "column": 16 }, "end": { "line": 5, "column": 28 } } }, "range": [ 83, 99 ], "loc": { "start": { "line": 5, "column": 12 }, "end": { "line": 5, "column": 28 } } } ], "kind": "let", "range": [ 79, 100 ], "loc": { "start": { "line": 5, "column": 8 }, "end": { "line": 5, "column": 29 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "y", "range": [ 114, 115 ], "loc": { "start": { "line": 6, "column": 12 }, "end": { "line": 6, "column": 13 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Str", "range": [ 118, 121 ], "loc": { "start": { "line": 6, "column": 16 }, "end": { "line": 6, "column": 19 } } }, "property": { "type": "Identifier", "name": "lower", "range": [ 122, 127 ], "loc": { "start": { "line": 6, "column": 20 }, "end": { "line": 6, "column": 25 } } }, "range": [ 118, 127 ], "loc": { "start": { "line": 6, "column": 16 }, "end": { "line": 6, "column": 25 } } }, "arguments": [ { "type": "Identifier", "name": "b", "range": [ 128, 129 ], "loc": { "start": { "line": 6, "column": 26 }, "end": { "line": 6, "column": 27 } } } ], "range": [ 118, 130 ], "loc": { "start": { "line": 6, "column": 16 }, "end": { "line": 6, "column": 28 } } }, "range": [ 114, 130 ], "loc": { "start": { "line": 6, "column": 12 }, "end": { "line": 6, "column": 28 } } } ], "kind": "let", "range": [ 110, 131 ], "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 29 } } }, { "type": "ReturnStatement", "argument": { "type": "ConditionalExpression", "test": { "type": "BinaryExpression", "operator": "<", "left": { "type": "Identifier", "name": "x", "range": [ 150, 151 ], "loc": { "start": { "line": 7, "column": 17 }, "end": { "line": 7, "column": 18 } } }, "right": { "type": "Identifier", "name": "y", "range": [ 154, 155 ], "loc": { "start": { "line": 7, "column": 21 }, "end": { "line": 7, "column": 22 } } }, "range": [ 150, 155 ], "loc": { "start": { "line": 7, "column": 17 }, "end": { "line": 7, "column": 22 } } }, "consequent": { "type": "UnaryExpression", "operator": "-", "argument": { "type": "Literal", "value": 1, "raw": "1", "range": [ 160, 161 ], "loc": { "start": { "line": 7, "column": 27 }, "end": { "line": 7, "column": 28 } } }, "prefix": true, "range": [ 159, 161 ], "loc": { "start": { "line": 7, "column": 26 }, "end": { "line": 7, "column": 28 } } }, "alternate": { "type": "ConditionalExpression", "test": { "type": "BinaryExpression", "operator": ">", "left": { "type": "Identifier", "name": "x", "range": [ 166, 167 ], "loc": { "start": { "line": 7, "column": 33 }, "end": { "line": 7, "column": 34 } } }, "right": { "type": "Identifier", "name": "y", "range": [ 170, 171 ], "loc": { "start": { "line": 7, "column": 37 }, "end": { "line": 7, "column": 38 } } }, "range": [ 166, 171 ], "loc": { "start": { "line": 7, "column": 33 }, "end": { "line": 7, "column": 38 } } }, "consequent": { "type": "Literal", "value": 1, "raw": "1", "range": [ 175, 176 ], "loc": { "start": { "line": 7, "column": 42 }, "end": { "line": 7, "column": 43 } } }, "alternate": { "type": "Literal", "value": 0, "raw": "0", "range": [ 179, 180 ], "loc": { "start": { "line": 7, "column": 46 }, "end": { "line": 7, "column": 47 } } }, "range": [ 165, 180 ], "loc": { "start": { "line": 7, "column": 32 }, "end": { "line": 7, "column": 47 } } }, "range": [ 149, 181 ], "loc": { "start": { "line": 7, "column": 16 }, "end": { "line": 7, "column": 48 } } }, "range": [ 141, 183 ], "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 50 } } } ], "range": [ 68, 190 ], "loc": { "start": { "line": 4, "column": 19 }, "end": { "line": 8, "column": 5 } } }, "generator": false, "expression": false, "range": [ 62, 190 ], "loc": { "start": { "line": 4, "column": 13 }, "end": { "line": 8, "column": 5 } } }, "kind": "init", "method": true, "shorthand": false, "computed": false, "range": [ 52, 190 ], "loc": { "start": { "line": 4, "column": 3 }, "end": { "line": 8, "column": 5 } } } ], "range": [ 46, 193 ], "loc": { "start": { "line": 3, "column": 15 }, "end": { "line": 9, "column": 1 } }, "leadingComments": [], "trailingComments": [] }, "range": [ 31, 194 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 9, "column": 2 } } } ], "sourceType": "module", "range": [ 0, 194 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 9, "column": 2 } }, "comments": [] }