Mariusz Nowak
17e5be7137
fix: Support ES2015+ function definitions in function#toStringTokens()
...
Additionally revert from problematic regex based implementation. Addresses #021
2024-02-21 16:33:49 +01:00
Mariusz Nowak
6fdaee3c0b
fix: Do not rely on problematic regex
...
Addresses #201
2024-02-19 17:38:29 +01:00
Mariusz Nowak
59f9b074fd
style: Prettify
2022-03-07 13:27:20 +01:00
Mariusz Nowak
64b4711b37
fix: Ensure Function.isFunction recognizes async functions
2019-08-30 14:46:06 +02:00
Mariusz Nowak
af2657ec5d
style: Prettify
2019-06-14 11:26:34 +02:00
Mariusz Nowak
119d4d2820
feat: allow plain function usage of fn.compose
2019-03-11 13:26:11 +01:00
Mariusz Nowak
7ae6e613f9
refactor: improve args handling
2019-03-11 13:22:00 +01:00
Mariusz Nowak
b0869c034c
style: prettier
2019-03-11 13:21:47 +01:00
Mariusz Nowak
b0dfd174b0
feat: Add function.microtaskDelay method
2018-03-16 15:28:28 +01:00
Mariusz Nowak
53234d3bff
style: upgrade lint settings
2017-09-06 12:57:19 +02:00
Mariusz Nowak
1d002ca9d0
refactor: adapt to new lint rules
2017-07-10 17:21:01 +02:00
Mariusz Nowak
cc74464f3f
refactor: update to new lint rules
2017-07-10 14:05:08 +02:00
Mariusz Nowak
ad3de1ef89
feat: support arrow functions in Function/#/to-tring-tokens.js
2017-05-22 14:28:05 +02:00
Mariusz Nowak
432e2906d4
refactor: use regExp literal
2017-05-22 14:17:01 +02:00
Mariusz Nowak
c84f96281a
Add Function#toStringTokens
2015-01-08 15:07:51 +01:00
Mariusz Nowak
97a0e60db3
Rename toUint into toPosInteger
...
Technically it's not about unsigned integer, but about any positive
integer representation we can have in JavaScript
2014-04-13 11:43:11 +02:00
Mariusz Nowak
26ca91a041
Rename Function.k to Function.constant
2014-02-12 16:23:41 +01:00
Mariusz Nowak
2822e56988
Rename Function.i to Function.identity
2014-02-12 15:08:35 +01:00
Mariusz Nowak
f9bc92d21c
Remove Function#wrap
2013-10-09 16:40:25 +02:00
Mariusz Nowak
cd59a360de
Remove Function#silent
2013-10-09 16:22:13 +02:00
Mariusz Nowak
89f3665357
Assure correct length in Function#partial
2013-10-09 16:18:59 +02:00
Mariusz Nowak
c983204b4e
Assure correct length in Function#not
2013-10-09 16:14:53 +02:00
Mariusz Nowak
23d7bce1ea
Return same function if length doesn't differ
2013-10-09 16:13:12 +02:00
Mariusz Nowak
f91f2a1fdc
-- whitespace
2013-10-09 16:04:04 +02:00
Mariusz Nowak
d0fa104d0e
Rename Function#match to Function#spread
2013-10-09 16:00:12 +02:00
Mariusz Nowak
d326226d3e
-- whitespace
2013-10-09 15:55:01 +02:00
Mariusz Nowak
74fe9877ff
Assure correct length in Function#curry results
2013-10-09 15:53:32 +02:00
Mariusz Nowak
38a77a339f
Improve Function#curry
2013-10-09 15:47:11 +02:00
Mariusz Nowak
8a53306b10
Improve Function#copy
2013-10-09 15:35:27 +02:00
Mariusz Nowak
079dabf93b
Be generic
2013-10-09 15:04:40 +02:00
Mariusz Nowak
35c7c8b023
Function with preset length generator
2013-10-09 14:54:31 +02:00
Mariusz Nowak
bac383ec04
Return function with length 1 from compose
2013-10-09 14:04:21 +02:00
Mariusz Nowak
8a130cc720
Rename Function#chain to Function#compose.
...
Reverse order in which functions are invoked
2013-10-09 14:03:00 +02:00
Mariusz Nowak
0d8eba5be1
-- whitespace
2013-10-09 13:32:02 +02:00
Mariusz Nowak
fb51fe799a
Remove Function.remove
2013-10-09 13:31:25 +02:00
Mariusz Nowak
150915c6a6
-- whitespace
2013-10-09 13:28:15 +02:00
Mariusz Nowak
16cf4a0404
-- simplify
2013-10-09 13:27:42 +02:00
Mariusz Nowak
d84a884f13
Remove Function.insert
2013-10-09 13:25:22 +02:00
Mariusz Nowak
17cd31a768
Replace Object.extendProperties with Object.mixin
2013-10-03 18:15:22 +02:00
Mariusz Nowak
4219c23a74
Reorganize Array.from to follow ECMASCript6 spec
...
- Array.from always returns copy of input array
- Array.from implements optional mapping functionality
- Array.toArray was introduced as alternative that does not produce copy of an array if it's not needed
- Array#copy was removed, as same now can be achived by Array.from
Array.from doesn't follow ES6 spec in full:
- It doesn't support iterators (which are non existent and cannot be fully shimmed in ES5)
- It doesn't produce array subclasses if it's called in context of such constructors. Array subclasses are not possible in plain ES5 (note: still in many implementations they can be produced with help of `__proto__`, so this part may be subject to changes)
2013-10-01 13:57:59 +02:00
Mariusz Nowak
83b2182f67
Change filename convention to shorter paths
2013-08-27 20:33:30 +02:00