JSFiddle - React, Tailwind, and code Playground

by Frank Liu

JavaScript

const skyportErrorCode = codeKey =>
    [...(error?.graphQLErrors ?? []), error?.networkError?.result ?? []].find(err =>
      err?.cause?.errorCodes?.includes(codeKey)
    );
    
const x = undefined, y = ['apple','bana']