19819a5e919c4118f3e60443553d7472.json
1.56 KB
{"ast":null,"code":"var toInteger = require('../internals/to-integer');\n\nvar max = Math.max;\nvar min = Math.min; // Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\n\nmodule.exports = function (index, length) {\n var integer = toInteger(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/core-js-pure/internals/to-absolute-index.js"],"names":["toInteger","require","max","Math","min","module","exports","index","length","integer"],"mappings":"AAAA,IAAIA,SAAS,GAAGC,OAAO,CAAC,yBAAD,CAAvB;;AAEA,IAAIC,GAAG,GAAGC,IAAI,CAACD,GAAf;AACA,IAAIE,GAAG,GAAGD,IAAI,CAACC,GAAf,C,CAEA;AACA;AACA;;AACAC,MAAM,CAACC,OAAP,GAAiB,UAAUC,KAAV,EAAiBC,MAAjB,EAAyB;AACxC,MAAIC,OAAO,GAAGT,SAAS,CAACO,KAAD,CAAvB;AACA,SAAOE,OAAO,GAAG,CAAV,GAAcP,GAAG,CAACO,OAAO,GAAGD,MAAX,EAAmB,CAAnB,CAAjB,GAAyCJ,GAAG,CAACK,OAAD,EAAUD,MAAV,CAAnD;AACD,CAHD","sourcesContent":["var toInteger = require('../internals/to-integer');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toInteger(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n"]},"metadata":{},"sourceType":"script"}