UNPKG

@atlaskit/build-utils

Version:

Collection of utilities to used during the release process of Atlaskit

7 lines (5 loc) 212 B
/** Typescript type guards */ /* A simple defined check with type guard that works well with Array.prototype.filter */ export function isDefined<T>(arg: T | undefined | null): arg is T { return arg != null; }