You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 11, 2024. It is now read-only.
result =Recollect::Hash.get(user, 'schedule.all_day')
195
+
->true
196
+
197
+
result =Recollect::Hash.get(user, 'numbers')
198
+
-> ['1', '2']
199
+
200
+
result =Recollect::Hash.get(user, 'numbers.0')
201
+
->1
202
+
```
203
+
204
+
### Recollect::Array.pluck(array, path)
205
+
206
+
```ruby
207
+
users = [
208
+
{
209
+
id:1,
210
+
name:'Test #1',
211
+
email:'test1@email1.com',
212
+
schedule: { all_day:true },
213
+
numbers:%w[1 2],
214
+
active:true,
215
+
count:9
216
+
},
217
+
{
218
+
id:2,
219
+
name:'Test #1',
220
+
email:'test1@email1.com',
221
+
schedule: { all_day:true },
222
+
numbers:%w[1 2],
223
+
active:true,
224
+
count:9
225
+
}
226
+
]
227
+
228
+
result =Recollect::Array.pluck(users, 'id')
229
+
$ -> [1, 2]
230
+
231
+
result =Recollect::Array.pluck(users, 'schedule.all_day')
232
+
$ -> [true, true]
163
233
```
164
234
165
235
[⬆️ Back to Top](#table-of-contents-)
@@ -172,13 +242,9 @@ To install this gem onto your local machine, run `bundle install`. To release a
172
242
173
243
## Contributing
174
244
175
-
Bug reports and pull requests are welcome on GitHub at https://github.com/thadeu/nano-collection-filter. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/thadeu/nano-collection-filter/blob/master/CODE_OF_CONDUCT.md).
245
+
Bug reports and pull requests are welcome on GitHub at https://github.com/thadeu/recollect-array-filter. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/thadeu/recollect-array-filter/blob/master/CODE_OF_CONDUCT.md).
176
246
177
247
178
248
## License
179
249
180
250
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
181
-
182
-
## Contributing
183
-
184
-
We have a long list of valued contributors. Check them all at: https://github.com/thadeu/nano-collection-filter.
0 commit comments