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

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

Build:
Build:
LAST BUILD BRANCH: feature/futil-tree-find
DEFAULT BRANCH: master
Ran 03 Mar 2017 08:04PM 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
255

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 occurrences of a terms
object with a field property and to modify the first so that it has:
`collect_mode: 'breadth_first'`

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

67 of 67 relevant lines covered (100.0%)

19.63 hits per line

Jobs
ID Job ID Ran Files Coverage
1 255.1 03 Mar 2017 08:04PM UTC 0
100.0
Travis Job 255.1
Source Files on build 255
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #255
  • a0ddb755 on github
  • Next Build on feature/deepFind (#256)
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