How to use the ts-util-is.isArray function in ts-util-is

To help you get started, we’ve selected a few ts-util-is examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github justinlettau / sql-source-control / dist / commands / pull.js View on Github external
function include(config, file) {
    if (!config.files || !config.files.length) {
        return true;
    }
    if (!ts_util_is_1.isArray(file)) {
        file = [file];
    }
    var results = multimatch(file, config.files);
    return !!results.length;
}
/**

ts-util-is

TypeScript typeof utility helper with no dependencies.

MIT
Latest version published 7 months ago

Package Health Score

61 / 100
Full package analysis