types/make.js
function hasChildren(parts) {
	// Concatenate the chain with each other part, and see if any concatenations are valid functions
	const validChildren = allParts
		.filter(newPart => parts.indexOf(newPart) === -1)
		.map(newPart => parts.concat([newPart]))
		.filter(longer => verify(longer, false));

	return validChildren.length > 0;
}
function hasChildren(parts) {
	// Concatenate the chain with each other part, and see if any concatenations are valid functions
	const validChildren = allParts
		.filter(newPart => parts.indexOf(newPart) === -1)
		.map(newPart => parts.concat([newPart]))
		.filter(longer => verify(longer, false));

	return validChildren.length > 0;
}
function hasChildren ( parts ) { // Concatenate the chain with each other part, and see if any concatenations are valid functions const validChildren = allParts . filter ( newPart => parts . indexOf ( newPart ) === - 1 ) . map ( newPart => parts . concat ( [ newPart ] ) ) . filter ( longer => verify ( longer , false ) ) ; return validChildren . length > 0 ; }
Returns true if a chain can have any child properties
Returns true if a chain can have any child properties