Function optimizeObject

  • A helper function to assist with JIT performance for objects that have properties added / removed dynamically this is primarily for chromium based browsers and has limited effects on Firefox and none of IE. Only call this function after you have finished "updating" the object, calling this within loops reduces or defeats the benefits. This helps when iterating using for..in, objKeys() and objForEach()

    Type Parameters

    • T

    Parameters

    • theObject: T

      The object to be optimized if possible

    Returns T

Generated using TypeDoc