How to use the apollo-env.isNotNullOrUndefined function in apollo-env

To help you get started, we’ve selected a few apollo-env 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 apollographql / apollo-server / packages / apollo-gateway / src / utilities / array.ts View on Github external
(accumulator, element, index, array) => {
      const result = callbackfn(element, index, array);
      if (isNotNullOrUndefined(result)) {
        accumulator.push(result);
      }
      return accumulator;
    },
    [] as U[],

apollo-env

MIT
Latest version published 3 years ago

Package Health Score

67 / 100
Full package analysis

Similar packages