1

I am having an array of objects -

[{ name: "Thing0", price: "0" }, { name: "Thing1", price: "1" }, { name: "Thing2", price: "2" }]

I want to know, if I could search, in the array, for a string, then return that object.
For example: I want to search for Thi. It should return all the objects whose name starting or having the letters - 'Thi'.
Is it possible ?
Thanks

Ajit Kumar
  • 367
  • 1
  • 10
  • 35

0 Answers0