// Copyright (c) ppy Pty Ltd . Licensed under the GNU Affero General Public License v3.0. // See the LICENCE file in the repository root for full licence text. export function mobxArrayGet(array: T[] | null | undefined, index: number): T | undefined { return array != null && array.length > index ? array[index] : undefined; }