-
Notifications
You must be signed in to change notification settings - Fork 115
solve 중간 PR #173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Jaeman-Lim
wants to merge
27
commits into
pkiop:master
Choose a base branch
from
Jaeman-Lim:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
solve 중간 PR #173
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
5700fa8
solve: everyArray
Jaeman-Lim 4ac536d
이름 변경
Jaeman-Lim 2bf264d
challenge 이름 변경
Jaeman-Lim ba6a7a2
solve: expDivOdd
Jaeman-Lim 81ae830
solve: expDivOdd
Jaeman-Lim 256ca14
solve: filterAge
Jaeman-Lim 461bb0a
solve: everyArray
Jaeman-Lim d8d9121
solve: filterIntersection
Jaeman-Lim 3c21fb5
solve: filterOdd
Jaeman-Lim bef44d8
solve: forEachFilter
Jaeman-Lim c90c7b1
solve: forEachFilterIsNaN
Jaeman-Lim 664b800
solve: forEachMap
Jaeman-Lim f027a28
solve: forEachReduce
Jaeman-Lim e52446a
solve: findWord
Jaeman-Lim cffd773
solve: mapAddPercent
Jaeman-Lim ced5882
solve: mapAppendOrder
Jaeman-Lim 69dc828
solve: recommendAd
Jaeman-Lim 13f9106
solve: recommendAd
Jaeman-Lim 857e165
expDivOd
Jaeman-Lim 751a22d
solve: findWord
Jaeman-Lim 064f23a
주석 제거
Jaeman-Lim e773507
solve: figureSkating
Jaeman-Lim 2c14b65
solve: expDivOdd
Jaeman-Lim 8c03ea5
solve: findWord
Jaeman-Lim 907b6f6
solve: mapAddPercent
Jaeman-Lim 7b0ec16
solve: mapAppendOrder
Jaeman-Lim eedacf3
solve: recommendAd
Jaeman-Lim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,19 @@ | ||
// 배열 원소의 age가 30이상 50미만인 사람만 있는 객체의 배열을 만드세요 | ||
// write your codes | ||
function solution(inputArray) {} | ||
|
||
exports.solution = solution; | ||
const inputArray = [ | ||
{name: '재만', age: 36}, | ||
{name: '준호', age: 30}, | ||
{name: '영희', age: 28}, | ||
{name: '은혜', age: 45}, | ||
{name: '영수', age: 55} | ||
]; | ||
|
||
let answer = inputArray.filter(e => e.age >= 30 && e.age < 50) | ||
.sort(function(a, b) { | ||
if (a.age > b.age) return 1; | ||
if (a.age == b.age) return 0; | ||
if (a.age < b.age) return -1; | ||
}) | ||
|
||
console.log(answer); |
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 코드 지우고 console.log 찍어서 확인하는 방식이 아니라
이 solution 함수를 완성하면 solve.test.js에서 자동으로 답 검증하는 거에요!
readme에 설명 보시고 테스트 한번 해보시면 어떻게 동작하는지 아실거에요😊