modifyLibrary()

  • Parameters

    • baseLibrary: LibraryData

      the library to be modified

    • newData: { [key: string]: string | string[] }

      key-value pairs with which to update the library

    • Optionalcategory: string

      the category that the new values should go into. This isn't necessary if we're modifying the value of a key that already exists in the library; modifyLibrary will figure it out. It's only necessary if we're adding a new key.

    Returns LibraryData