UNPKG
@steelbreeze/pivot
Version:
latest (4.6.1)
4.6.1
4.3.0
4.2.0
4.1.11
4.1.10
4.1.9
4.1.8
4.1.7
4.1.6
4.1.5
4.1.4
4.1.3
4.1.2
4.1.1
4.1.0
4.0.0
3.7.1
3.7.0
3.6.4
3.6.3
3.6.2
3.6.1
3.6.0
3.5.2
3.5.1
3.5.0
3.5.0-beta-2
3.5.0-beta
3.5.0-alpha
3.4.3
3.4.2
3.4.1
3.4.0
3.3.1
3.3.0
3.2.0
3.1.3
3.1.2
3.1.1
3.1.0
3.0.0
2.9.2
2.9.1
2.9.0
2.8.7
2.8.6
2.8.5
2.8.4
2.8.3
2.8.2
2.8.1
2.8.0
2.7.3
2.7.2
2.7.1
2.7.0
2.6.0
2.5.4
2.5.3
2.5.2
2.5.1
2.5.0
2.4.2
2.4.1
2.4.0
2.3.2
2.3.1
2.3.0
2.2.0
2.1.1
2.1.0
2.0.2
2.0.1
2.0.0
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.2
1.1.1
1.1.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
1.0.0-rc.17
1.0.0-rc.16
1.0.0-rc.15
1.0.0-rc.14
1.0.0-rc.13
1.0.0-rc.12
1.0.0-rc.11
1.0.0-rc.10
1.0.0-rc.9
1.0.0-rc.8
1.0.0-rc.7
1.0.0-rc.6
1.0.0-rc.5
1.0.0-rc.4
1.0.0-rc.3
1.0.0-rc.2
1.0.0-rc.1
Minimal TypeScript / JavaScript n-cube library
github.com/steelbreeze/pivot
steelbreeze/pivot
@steelbreeze/pivot
/
lib
/
node
/
example
/
distinct.js
10 lines
(9 loc)
•
275 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
distinct
= distinct;
/** * Function to pass into Array.prototype.filter to return unique values. */
function
distinct
(
value, index, source
) {
return
source.
indexOf
(value) === index; }