UNPKG

serverless-fargate

Version:

Maintain long-running Fargate ECS tasks within your Serverless project

10 lines (8 loc) 184 B
'use strict'; module.exports.get = (obj, path, def) => path .split('.') .filter(Boolean) .every(step => !(step && (obj = obj[step]) === undefined)) ? obj : def;