11'use strict'
22const o = require ( 'object-tools' )
33const testValue = require ( 'test-value' )
4- const where = require ( 'filter-where' )
54const arrayify = require ( 'array-back' )
65const extract = require ( 'reduce-extract' )
76
@@ -41,7 +40,7 @@ function transform (data) {
4140 return doclet
4241 } )
4342
44- const exported = json . filter ( where ( { isExported : true } ) )
43+ const exported = json . filter ( testValue . cb ( { isExported : true } ) )
4544 const newIDs = exported . map ( d => d . id )
4645
4746 newIDs . forEach ( function ( newID ) {
@@ -384,7 +383,7 @@ function fixES6ConstructorMemberLongnames (data) {
384383 if ( isES6Class ( i ) ) {
385384 const es6constructor = getEs6Constructor ( data , i )
386385 if ( es6constructor ) {
387- const constructorChildren = data . filter ( where ( { memberof : es6constructor . longname } ) )
386+ const constructorChildren = data . filter ( testValue . cb ( { memberof : es6constructor . longname } ) )
388387 constructorChildren . forEach ( child => child . memberof = i . longname )
389388 }
390389 }
@@ -403,7 +402,7 @@ function convertIsEnumFlagToKind (doclet) {
403402/* remove properties which have enum parents.. depends on convertIsEnumFlagToKind */
404403function removeEnumChildren ( json ) {
405404 return json . filter ( function ( doclet ) {
406- var parent = json . find ( where ( { id : doclet . memberof } ) )
405+ var parent = json . find ( testValue . cb ( { id : doclet . memberof } ) )
407406 if ( parent && parent . kind === 'enum' ) {
408407 return false
409408 } else {
0 commit comments