UNPKG

@aikidosec/firewall

Version:

Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks

10 lines (9 loc) 332 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getCurrentAndNextSegments = getCurrentAndNextSegments; function getCurrentAndNextSegments(array) { return array.slice(0, -1).map((currentItem, index) => ({ currentSegment: currentItem, nextSegment: array[index + 1], })); }