How to use the itertools.contains function in itertools

To help you get started, we’ve selected a few itertools 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 CSUFTitanRover / TitanRover2018 / rover / core / servers / Deepstream / mock-sensors / index.js View on Github external
sensorProps.forEach(prop => {
            let isSettingsProp = contains(['timeDelay', 'debug', 'path', 'verbose', 'deepstreamServer', 'sensorType'], prop)

            if (!isSettingsProp) {
                log(chalk.cyan(`\t- ${prop}`))
            }
        })
    });

itertools

A JavaScript port of Python's awesome itertools standard library

MIT
Latest version published 23 days ago

Package Health Score

79 / 100
Full package analysis