* numeric index string; otherwise, returns undefined.
*
* There is no clamping of the numeric index, but note that numbers
- * above 2^53 − 1 are not safe nor valid integer indices.
+ * above 2^53 − 1 are not safe nor valid integer indices.
*/
export const canonicalNumericIndexString = ($) => {
if (typeof $ !== "string") {
*
* The definition of “collection” used by Piscēs is similar to
* Ecmascript’s definition of an arraylike object, but it differs in
- * a few ways :—
+ * a few ways :—
*
* - It requires the provided value to be a proper object.
*
{
"fmt": { "options": { "lineWidth": 71 } },
- "lint": {
- "rules": {
- "exclude": ["constructor-super", "no-irregular-whitespace"]
- }
- }
+ "lint": { "rules": { "exclude": ["constructor-super"] } }
}
/**
* Recomposes an (L·E·)I·R·I reference from its component parts.
*
- * See §5.3 of R·F·C 3986.
+ * See §5.3 of R·F·C 3986.
*/
composeReference,
* Removes all dot segments ("." or "..") from the provided
* (L·E·)I·R·I.
*
- * See §5.2.4 of R·F·C 3986.
+ * See §5.2.4 of R·F·C 3986.
*/
removeDotSegments,
} = (() => {
* Returns the result of merging the provided reference path with the
* provided base path.
*
- * See §5.2.3 of R·F·C 3986.
+ * See §5.2.3 of R·F·C 3986.
*/
export const mergePaths = (base, reference) => {
const baseStr = `${base}` || "/";
* Resolves the provided reference relative to the provided base
* (L·E·)I·R·I.
*
- * See §5.2 of R·F·C 3986.
+ * See §5.2 of R·F·C 3986.
*/
export const resolveReference = (R, Base = location ?? "") => {
const {