@neo4j/cypher-builder
Version:
A programmatic API for building Cypher queries for Neo4j
14 lines (13 loc) • 363 B
JavaScript
;
/*
* Copyright (c) "Neo4j"
* Neo4j Sweden AB [http://neo4j.com]
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.padLeft = padLeft;
/** Adds spaces to the left of the string, returns empty string if variable is undefined or empty string */
function padLeft(str) {
if (!str)
return "";
return ` ${str}`;
}