Skip to content

Commit

Permalink
Inline isPath.
Browse files Browse the repository at this point in the history
  • Loading branch information
raineorshine committed Jan 15, 2025
1 parent 877e579 commit cb7053a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 3 additions & 1 deletion src/util/isEM.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import Context from '../@types/Context'
import Path from '../@types/Path'
import { EM_TOKEN } from '../constants'
import isPath from './isPath'

/** Checks if an object is of type Path. */
const isPath = (o: Context | Path): o is Path => o.length > 0 && Object.prototype.hasOwnProperty.call(o[0], 'value')

/** Returns true if the Path is the EM_TOKEN. */
const isEM = (thoughts: Context | Path): boolean =>
Expand Down
7 changes: 0 additions & 7 deletions src/util/isPath.ts

This file was deleted.

0 comments on commit cb7053a

Please sign in to comment.