INNER CODE UNIT · JavaScript

startDot

mx-space/core · apps/admin/polyfills/packages/path/index.js:389

      startDot === -1 ||
      end === -1 ||
      // We saw a non-dot character immediately before the dot
      preDotState === 0 ||
      // The (right-most) trimmed path component is exactly '..'
      (preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)
    ) {
      return ''
    }
    return path.slice(startDot, end)
  },

  format: function format(pathObject) {
    if (pathObject === null || typeof pathObject !== 'object') {
      throw new TypeError(
        `The "pathObject" argument must be of type Object. Received type ${typeof pathObject}`,
      )
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…