-
Notifications
You must be signed in to change notification settings - Fork 5.7k
add isPrimitive and tests to node/util #4673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks - but can you add tests?
std/node/util.ts
Outdated
@@ -46,6 +46,16 @@ export function isRegExp(value: unknown): boolean { | |||
return value instanceof RegExp; | |||
} | |||
|
|||
export function isBuffer(value: unknown): boolean { | |||
return value instanceof Deno.Buffer; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is likely not what Node's isBuffer does. Deno.Buffer is something different.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, removed for now ;
I will do my best to bring the node buffers here .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
add isPrimitive & functions and tests to it for
std/node/util
I really want to play a small role in developing deno
Is there a priority for developing this module [ std/node ] ?