UNPKG
@fable-org/fable-library-js
Version:
latest (2.0.0-beta.6)
2.0.0-beta.6
2.0.0-beta.5
2.0.0-beta.4
2.0.0-beta.3
2.0.0-beta.2
2.0.0-beta.1
1.11.0
1.10.0
1.9.0
1.8.0
1.7.0
1.6.0
1.5.0
1.4.3
1.4.2
1.4.1
1.4.0
1.3.0
1.2.0
1.1.0
1.0.0
1.0.0-beta-001
Core library used by F# projects compiled with fable.io
fable.io
fable-compiler/Fable
@fable-org/fable-library-js
/
Native.js
15 lines
(14 loc)
•
320 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export
function
Helpers_allocateArrayFromCons
(
cons, len
) {
if
(cons ==
null
) {
return
new
Array
(len); }
else
{
const
cons_1 = cons;
if
((
typeof
cons_1) ===
"function"
) {
return
new
cons_1
(len); }
else
{
return
new
Array
(len); } } }