Skip to content

expose makeCheck as is() #4

@millermedeiros

Description

@millermedeiros

that we can use like:

tk.is(token, '['); // match token.value
tk.is(token, 'Punctuator'); // match token.type
tk.is(token, ['(', '{', '[']); // match any value

we already use makeCheck on all the find methods.

see #3

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions