UNPKG

flipper-plugin-lib

Version:

Library containing common Flipper plugin installation utilities

19 lines 621 B
"use strict"; /** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ Object.defineProperty(exports, "__esModule", { value: true }); exports.notNull = void 0; // TODO T75614643: move to a separate lib for utils, e.g. flipper-utils // Typescript doesn't know Array.filter(Boolean) won't contain nulls. // So use Array.filter(notNull) instead. function notNull(x) { return x !== null && x !== undefined; } exports.notNull = notNull; //# sourceMappingURL=typeUtils.js.map