This commit is contained in:
Daniel Sami 2019-01-16 11:06:25 +09:00
parent 0c250cd6af
commit ae3ab89515

View File

@ -16,7 +16,8 @@ const store = {};
*
* @param endpoint - The REST API url suffix.
* @param data - Attributes used to create a new endpoint.
* @param [unique=['name']] - An array of keys used to uniquely identify previously created resources from the endpoint.
* @param [unique=['name']] - An array of keys used to uniquely identify previously
* created resources from the endpoint.
*
*/
const getOrCreate = (endpoint, data, unique = ['name']) => {