mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
10 lines
286 B
JavaScript
10 lines
286 B
JavaScript
// 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('.')}`;
|
|
};
|