higher-object
    TypeScript icon, indicating that this package has built-in type declarations

    0.2.6 • Public • Published

    Higher Object

    A little library to force good object standards.

    An object is considered a higher object of it meats the following criteria:

    • It is a JS 'class' that starts with an uppercase letter
    • It has a static ClassName.isClassName method for checking if something is a class
    • It has a static ClassName.fromJS
    • It has an instance valueOf method
    • It has an instance toString method
    • It has an instance toJS method
    • It has an instance toJSON method that returns the same as the toJS method
    • It has an instance equals method

    Install

    npm i higher-object

    DownloadsWeekly Downloads

    51

    Version

    0.2.6

    License

    MIT

    Last publish

    Collaborators

    • vadimon