function getType()

in lambda/src/data-file.ts [23:28]


function getType(objectKey: string) {
    const type = objectKey.split('/').slice(-2, -1)[0];
    return type && ['controls', 'frameworks'].includes(type.toLowerCase())
        ? type.toLowerCase()
        : null;
}