query
On this page

minor

lib.versions.minor

Docs pulled from | This Revision | 8 minutes ago


Get the minor version string from a string.

Inputs

v

1. Function argument

Examples

minor usage example

minor "1.2.3"
=> "2"

Noogle detected

Implementation

The following is the current implementation of this function.

minor = v: builtins.elemAt (splitVersion v) 1;