UNPKG

@neo4j/cypher-builder

Version:

A programmatic API for building Cypher queries for Neo4j

12 lines (11 loc) 317 B
"use strict"; /* * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] */ Object.defineProperty(exports, "__esModule", { value: true }); exports.filterTruthy = filterTruthy; /** Filter all elements in an array, only leaving truthy values */ function filterTruthy(arr) { return arr.filter((v) => !!v); }