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 a new function isStringify() #266

Closed
samchon opened this issue Oct 25, 2022 · 1 comment
Closed

Add a new function isStringify() #266

samchon opened this issue Oct 25, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@samchon
Copy link
Owner

samchon commented Oct 25, 2022

export function isStringify<T>(input: T): string | null;
export function createIsStringify<T>(): (input: T) => string | null;

Composite function combined with TSON.is() and TSON.stringify().

If succeeded to pass the type checking, JSON string would be returned.

Otherwise, null value would be returned.

@samchon samchon added the enhancement New feature or request label Oct 25, 2022
@samchon samchon self-assigned this Oct 25, 2022
@samchon
Copy link
Owner Author

samchon commented Oct 25, 2022

image

Benchmark with AMD 5800H

samchon added a commit that referenced this issue Oct 25, 2022
Close #266 - add `isStringify()` function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant