DEV Community

changj35513
changj35513

Posted on

When Refactoring Queries

Use .at(0) to pull/save just the one result from an array

No .at(0) is needed if you are .each - ing through a loop.

Top comments (0)