Function filterKeysWithSuffix

  • Parameters

    • obj: FOLD

      an object, FOLD object or otherwise.

    • suffix: string

      a suffix to match against the keys

    Returns string[]

    array of matching keys

    Description

    Get all keys in an object which end with a string and are immediately preceded by "_". For example, provide "vertices" and this will match "edges_vertices", "faces_vertices", but not "vertices_edges"