extensions/typescript-language-features/src/languageFeatures/tsconfig.ts/mapChildren
function mapChildren<R>(node: jsonc.Node | undefined, f: (x: jsonc.Node) => R): R[] {
	return node && node.type === 'array' && node.children
		? node.children.map(f)
		: [];
}