This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const polka = require('polka') | |
| module.exports = polka() | |
| .get('/', (req, res) => { | |
| res.end('this is the api') | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| "Alberta", | |
| "British Columbia", | |
| "Manitoba", | |
| "New Brunswick", | |
| "Newfoundland and Labrador", | |
| "Northwest Territories", | |
| "Nova Scotia", | |
| "Nunavut", | |
| "Ontario", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export const validateVin = value => { | |
| if (value.length !== 17) return false | |
| let chars = 'ABCDEFGHJKLMNPRSTUVWXYZ0123456789' | |
| let nValue = new Array( | |
| 1, | |
| 2, | |
| 3, | |
| 4, | |
| 5, |
OlderNewer