mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
13 lines
497 B
JavaScript
13 lines
497 B
JavaScript
export function supportedArchitectures ( appScan ) {
|
|
// if ( Array.isArray(appScan['Macho Meta']) ) {
|
|
// return appScan['Macho Meta'].map( architecture => architecture.processorType)
|
|
// }
|
|
|
|
// console.log('meta', appScan['Macho Meta'])
|
|
|
|
if ( appScan['Macho Meta'].architectures === undefined ) return []
|
|
|
|
return appScan['Macho Meta'].architectures
|
|
.map( architecture => architecture.processorType)
|
|
.filter(processorType => Number(processorType) !== 0)
|
|
}
|