//#region src/v2/blocks/operation-code-sample/helpers/get-custom-code-samples.ts
/**
* Grabs any custom code samples from the operation
*
* @param operation - The operation to get the custom code samples from
* @returns An array of custom code samples which exist in the operation
*/
var getCustomCodeSamples = (operation) => {
	return [
		"x-custom-examples",
		"x-codeSamples",
		"x-code-samples"
	].flatMap((key) => operation[key] ?? []);
};
//#endregion
export { getCustomCodeSamples };

//# sourceMappingURL=get-custom-code-samples.js.map