UNPKG

mangler

Version:
138 lines (137 loc) 2.73 kB
{ "array" : [ { "id" : "1", "value": "one" }, { "id" : "2", "value": "two" } ], "map" : { "1": { "id" : "1", "value": "one" }, "2": { "id" : "2", "value": "two" } }, "fixed" : [ { "input1": 0.2, "input2": 0.1, "result": 0.3, "real" : 0.30000000000000004 }, { "input1": 0.1, "input2": 0.7, "result": 0.8, "real" : 0.7999999999999999 }, { "input1": 0.4, "input2": 0.8, "result": 1.2, "real" : 1.2000000000000002 }, { "input1": 0.6, "input2": 0.7, "result": 1.3, "real" : 1.2999999999999998 }, { "input1": 0.1, "input2": 0.2, "result": 0.3, "real" : 0.30000000000000004 }, { "input1": 0.1, "input2": 0.2, "result": 0.3, "real" : 0.30000000000000004 }, { "input1": 0.1, "input2": 0.7, "result": 0.8, "real" : 0.7999999999999999 }, { "input1": 0.2, "input2": 0.4, "result": 0.6, "real" : 0.6000000000000001 }, { "input1": 0.4, "input2": 0.2, "result": 0.6, "real" : 0.6000000000000001 }, { "input1": 0.4, "input2": 0.8, "result": 1.2, "real" : 1.2000000000000002 }, { "input1": 0.3, "input2": 0.6, "result": 0.9, "real" : 0.8999999999999999 }, { "input1": 279.975, "input2": -279.86, "result": 0.115 }, { "input1": 254194205, "input2": 22888858010, "result": 23143052215 }, { "input1": 253190195, "input2": 23299397990, "result": 23552588185 }, { "input1": 253190195, "input2": 25585989300, "result": 25839179495 } ], "delprops": [ { "input" : { "object": "value", "killme": true }, "props" : "killme", "result": { "object": "value" } }, { "input" : [ { "object": "value", "killme": true, "zapme" : "yes" }, { "object": "value", "killme": true } ], "props" : ["killme", "zapme"], "result": [ { "object": "value" }, { "object": "value" } ] } ], "sanitize": [ { "input": "<script>alert(' c&tch n\"')</script>", "result":"&lt;script&gt;alert(&#x27; c&amp;tch n&quot;&#x27;)&lt;&#x2F;script&gt;" } ],"unsanitize": [ { "input": "&lt;script&gt;alert(&#x27; c&amp;tch n&quot;&#x27;)&lt;&#x2F;script&gt;", "result":"<script>alert(' c&tch n\"')</script>" } ] }