You are reading content from Scuttlebutt
@neftaly
Re: %rs1cBaXeC

@dinosaur I think it's nooot quite right. Fortunately, Ramda is super fun!

const hasExt = v => R.any(
  R.flip(R.endsWith)(v),
  [".mp4", ".m4v", ".webm", ".ogg", ".mp3"]
);

repl

@neftaly
Re: %rs1cBaXeC

Also if you like pointfree:

const hasExt = R.compose(
  R.any(R.__, [".mp4", ".m4v", ".webm", ".ogg", ".mp3"]),
  R.flip(R.endsWith)
);
@mikey
Voted this
@Ikki
Voted this
Join Scuttlebutt now