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

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

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

03 Mar 2017 08:03PM UTC coverage: 100.0%. First build
255.1

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'`

67 of 67 relevant lines covered (100.0%)

19.63 hits per line

Source Files on job 255.1
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 255
  • Travis Job 255.1
  • a0ddb755 on github
  • Next Job for on feature/deepFind (#256.1)
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