11'use strict'
22const o = require ( 'object-tools' )
33const testValue = require ( 'test-value' )
4+ const where = testValue . where
45const arrayify = require ( 'array-back' )
56const extract = require ( 'reduce-extract' )
67
@@ -40,7 +41,7 @@ function transform (data) {
4041 return doclet
4142 } )
4243
43- const exported = json . filter ( testValue . cb ( { isExported : true } ) )
44+ const exported = json . filter ( where ( { isExported : true } ) )
4445 const newIDs = exported . map ( d => d . id )
4546
4647 newIDs . forEach ( function ( newID ) {
@@ -383,7 +384,7 @@ function fixES6ConstructorMemberLongnames (data) {
383384 if ( isES6Class ( i ) ) {
384385 const es6constructor = getEs6Constructor ( data , i )
385386 if ( es6constructor ) {
386- const constructorChildren = data . filter ( testValue . cb ( { memberof : es6constructor . longname } ) )
387+ const constructorChildren = data . filter ( where ( { memberof : es6constructor . longname } ) )
387388 constructorChildren . forEach ( child => child . memberof = i . longname )
388389 }
389390 }
@@ -402,7 +403,7 @@ function convertIsEnumFlagToKind (doclet) {
402403/* remove properties which have enum parents.. depends on convertIsEnumFlagToKind */
403404function removeEnumChildren ( json ) {
404405 return json . filter ( function ( doclet ) {
405- var parent = json . find ( testValue . cb ( { id : doclet . memberof } ) )
406+ var parent = json . find ( where ( { id : doclet . memberof } ) )
406407 if ( parent && parent . kind === 'enum' ) {
407408 return false
408409 } else {
0 commit comments