• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

smartprocure / futil-js / 258
100%
master: 99%

Build:
Build:
LAST BUILD BRANCH: feature/futil-tree-find
DEFAULT BRANCH: master
Ran 04 Mar 2017 12:21AM UTC
Jobs 1
Files 5
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
258

push

travis-ci

sadasant
deepFind (and deepTransform)

deepTransform
Transforms a recursive iterable by a given function. Works like deepMap but
allows you to stop transforming at any point of the tree. The traversing
happens depth first.

deepFind
Goes over every `{ key, value }` of a recursive iterable data structure (for
arrays being numeric key and the value at the key position), and uses a function to extract
elements at any point in the tree onto an array that is returned. If a third
argument, the limit, is provided, it will stop iterating as soon as the number
of found objects reaches that limit.

Why?
Because this will allow me to find the first two nested occurrences of a terms
object with a field property and to modify the first so that it has:
`collect_mode: 'breadth_first'`

8 of 8 new or added lines in 1 file covered. (100.0%)

63 of 63 relevant lines covered (100.0%)

17.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 258.1 04 Mar 2017 12:21AM UTC 0
100.0
Travis Job 258.1
Source Files on build 258
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #258
  • a92f89fb on github
  • Prev Build on feature/deepFind (#256)
  • Next Build on feature/deepFind (#260)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc