src/common/fast-path.js/FastPath/map
class FastPath:  map(callback, ...names) {
    const result = [];
    this.each((path, index) => {
      result[index] = callback(path, index);
    }, ...names);
    return result;
  }