According to http://ift.tt/q0MLpA I believe getOrCreate function is an antipattern.
function getOrCreateObj(something) { let f = find(something, db); return f || createObj(something); }
What should I do to avoid it?
Aucun commentaire:
Enregistrer un commentaire