Function walkProto

  • Parameters

    • object: any

      Object to key-sort

    • callback: ((proto) => void) = ...

      Callback on prototype walk

        • (proto): void
        • Parameters

          • proto: any

          Returns void

    Returns void

    Description

    Walk all object prototypes

    Example

    import { object } from '@biorate/tools';

    class A {}
    class B extends A {}
    class C extends B {}

    const c = new C();

    object.walkProto(c, console.log);
    // C {}
    // B {}
    // A {}

Generated using TypeDoc