Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

연산 지연 대신 조건 분기를 사용 #117

Open
soomtong opened this issue Oct 18, 2016 · 0 comments
Open

연산 지연 대신 조건 분기를 사용 #117

soomtong opened this issue Oct 18, 2016 · 0 comments
Assignees
Milestone

Comments

@soomtong
Copy link
Owner

크게 도움 안될 퍼포먼스를 위해
(사실 여부도 확인해보고...)
연산 지연보다 조건 분기를 쓰도록 하자.

예를 들면

a && a();
a ? a() : null;

if (!a && typeof a === 'function') a();

가독성 면에서 보면 별로 하고 싶지 않은데 일단 남겨 둠.

@soomtong soomtong self-assigned this Oct 18, 2016
@soomtong soomtong added this to the 0.7.0 milestone Aug 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant