(verList)
| 62 | |
| 63 | // MARK: comparisons |
| 64 | getMostRecent(verList) { |
| 65 | for ( const testVersion of verList ) { |
| 66 | if ( this.unwrapVersion(testVersion.version)[0] === false ) { return false } |
| 67 | } |
| 68 | return verList.reduce((last, current) => this.maxVersion(last, current)) |
| 69 | } |
| 70 | |
| 71 | unwrapVersion(verString) { |
| 72 | if ( verString.match(/[^\d.]/) ) { return [false, null] } |
no test coverage detected