Skip to content
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

add isPrimitive and tests to node/util #4673

Merged
merged 6 commits into from
Apr 8, 2020

Conversation

disizali
Copy link
Contributor

@disizali disizali commented Apr 8, 2020

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 ] ?

@disizali disizali changed the title add isPrimitive add isPrimitive and isBuffer to node/util Apr 8, 2020
Copy link
Member

@ry ry left a 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;
Copy link
Member

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.

Copy link
Contributor Author

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 .

@disizali disizali changed the title add isPrimitive and isBuffer to node/util add isPrimitive and tests to node/util Apr 8, 2020
Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ry ry merged commit 90d6831 into denoland:master Apr 8, 2020
@disizali disizali deleted the node_util_isprimitive_isbuffer branch April 12, 2020 15:50
caspervonb pushed a commit to caspervonb/deno_std that referenced this pull request Jan 21, 2021
caspervonb pushed a commit to caspervonb/deno_std that referenced this pull request Jan 24, 2021
caspervonb pushed a commit to caspervonb/deno_std that referenced this pull request Jan 24, 2021
caspervonb pushed a commit to caspervonb/deno_std that referenced this pull request Jan 24, 2021
caspervonb pushed a commit to caspervonb/deno_std that referenced this pull request Jan 31, 2021
caspervonb pushed a commit to caspervonb/deno_std that referenced this pull request Jan 31, 2021
caspervonb pushed a commit to caspervonb/deno_std that referenced this pull request Jan 31, 2021
caspervonb pushed a commit to caspervonb/deno_std that referenced this pull request Jan 31, 2021
caspervonb pushed a commit to caspervonb/deno_std that referenced this pull request Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants