UNPKG

serverless

Version:

Serverless Framework - Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more

10 lines (7 loc) 286 B
// Stringify property keys array for user facing message 'use strict'; module.exports = (propertyPathKeys) => { const rootProperty = propertyPathKeys[0]; if (propertyPathKeys.length === 1) return rootProperty; return `${rootProperty}.${propertyPathKeys.slice(1).join('.')}`; };