EO
const multiplyByTwo = (value?: number): number | undefined => {
if (isPresentValue(value)) {
return value * 2;
}
return value;
};
хотелось бы что бы внутри ифа
value
было только number
а не number | undefined
Size: a a a
EO
const multiplyByTwo = (value?: number): number | undefined => {
if (isPresentValue(value)) {
return value * 2;
}
return value;
};
value
было только number
а не number | undefined
EO
Вт
Вт
IL
AR
AR
AR
IL
AR
AR
IL
AR
IL
AR
AR
IL
AR
Вт
Вт
name: cleanup (every day at 00:00)
on:
schedule:
- cron: "0 0 * * */1"
env:
IS_CI_BUILD: true
jobs:
build:
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: "14.x"
- name: Run cleanup
run: npm run cleanup-test