Main Export
Theairline-codes package exports a Backbone Collection containing airline data. The collection is pre-populated with airline information and sorted alphabetically by airline name.
Installation
Basic Import
What You Get
The default export is a Backbone Collection instance that:- Contains airline objects with standardized fields
- Is sorted alphabetically by airline name (via
comparator: 'name') - Provides all standard Backbone Collection methods
- Supports querying, filtering, and data manipulation
Quick Example
Data Structure
Each airline in the collection is a Backbone Model with the following attributes:id- Unique identifiername- Full airline namealias- Alternative name or aliasiata- IATA airline code (2-letter)icao- ICAO airline code (3-letter)callsign- Radio callsigncountry- Country of operationactive- Active status (“Y” or “N”)
Available Methods
Since the export is a Backbone Collection, you have access to all Backbone Collection methods:- Query methods:
find,findWhere,where,filter - Access methods:
at,get,first,last - Data extraction:
pluck,toJSON - Iteration:
forEach,map,reduce - And many more…
TypeScript Support
This package does not currently include TypeScript definitions. You may need to create your own type definitions or use
@types if available.Next Steps
Methods
Explore all available Backbone Collection methods
Data Fields
Learn about airline object fields and data types