mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 13:48:34 +00:00
Prettify
This commit is contained in:
parent
df5ffb4736
commit
27ff329981
@ -777,7 +777,7 @@ export class Pattern {
|
||||
// TODO - adopt value.mjs fully..
|
||||
function _composeOp(a, b, func) {
|
||||
function _nonFunctionObject(x) {
|
||||
return x instanceof Object && (!(x instanceof Function))
|
||||
return x instanceof Object && !(x instanceof Function);
|
||||
}
|
||||
if (_nonFunctionObject(a) || _nonFunctionObject(b)) {
|
||||
if (!_nonFunctionObject(a)) {
|
||||
@ -800,7 +800,7 @@ const composers = {
|
||||
mul: (a, b) => a * b,
|
||||
div: (a, b) => a / b,
|
||||
mod: mod,
|
||||
func: (a, b) => b(a)
|
||||
func: (a, b) => b(a),
|
||||
};
|
||||
|
||||
for (const [name, op] of Object.entries(composers)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user