MCPcopy Index your code
hub / github.com/nodejs/node / isLast

Method isLast

lib/internal/fs/glob.js:265–269  ·  view source on GitHub ↗
(isDirectory)

Source from the content-addressed store, hash-verified

263 }
264
265 isLast(isDirectory) {
266 return this.indexes.has(this.last) ||
267 (this.at(-1) === '' && isDirectory &&
268 this.indexes.has(this.last - 1) && this.at(-2) === lazyMinimatch().GLOBSTAR);
269 }
270 isFirst() {
271 return this.indexes.has(0);
272 }

Callers 2

#addSubpatternsMethod · 0.80
#iterateSubpatternsMethod · 0.80

Calls 3

atMethod · 0.95
lazyMinimatchFunction · 0.85
hasMethod · 0.65

Tested by

no test coverage detected