MindFusion.Charting for JavaScript Programmer's Guide
IEnumerable.min Method
See Also
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: None Language Filter: C# Language Filter: Visual Basic Language Filter: Java Language Filter: JavaScript Language Filter: C++ Language Filter: XAML

C#
Visual Basic
Java
JavaScript
C++
XAML

Invokes a transform function on each item and returns theminimum value in a sequence of numbers.

Namespace: MindFusion.Common.Collections
File: IEnumerable.js

## Syntax

JavaScript Copy Code
function min (selector)

### Parameters

selector

  Type: function
  function. A transform function to invoke on each element.

### Return Value

Type: Number
Number. The minimum number in the sequence.

## Example

The following code handles the selectionChanged event of a ListView to check if the min selected item is greater than 10:

JavaScript Copy Code
listView.selectionChanged.addEventListener(listSelectionChanged); function listSelectionChanged(sender, args) { if( args.newItems.min() > 10) { //do something } }

## See Also

IEnumerable Members
IEnumerable Class
MindFusion.Common.Collections Namespace