Constructor|Stringtarget: The target type. It could be a string (e.g. "array") or a
constructor (e.g. Array).
Return
String|Boolean It returns true if the input has the provided type target (if was provided),
false if the input type does not have the provided type
target or the stringified type of the input (always lowercase).
Typpy.is(input, target)
Checks if the input value has a specified type.
Params
Anythinginput: The input value.
Constructor|Stringtarget: The target type. It could be a string (e.g. "array") or a
constructor (e.g. Array).
Return
Booleantrue, if the input has the same type with the target or false otherwise.
Typpy.get(input, str)
Gets the type of the input value. This is used internally.
Params
Anythinginput: The input value.
Booleanstr: A flag to indicate if the return value should be a string or not.
Return
Constructor|String The input value constructor (if any) or the stringified type (always lowercase).
:question: Get Help
There are few ways to get help:
Please post questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.
For bug reports and feature requests, open issues. :bug:
For direct and quick help, you can use Codementor. :rocket:
I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously,
this takes time. You can integrate and use these projects in your applications for free! You can even change the source code and redistribute (even resell it).
However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:
Starring and sharing the projects you like :rocket:
—I love books! I will remember you after years if you buy me one. :grin: :book:
—You can make one-time donations via PayPal. I'll probably buy a coffee tea. :tea:
—Set up a recurring monthly donation and you will get interesting news about what I'm doing (things that I don't share with everyone).