[過去ログ] プログラミングのお題スレ Part21 (1002レス)
上下前次1-新
抽出解除 必死チェッカー(本家) (べ) 自ID レス栞 あぼーん
このスレッドは過去ログ倉庫に格納されています。
次スレ検索 歴削→次スレ 栞削→次スレ 過去ログメニュー
リロード規制です。10分ほどで解除するので、他のブラウザへ避難してください。
432(1): デフォルトの名無しさん [] 2023/02/20(月) 01:43:32.57 ID:4kHRqek0(1/5) AAS
>>429 js
(word) => word + 's'
433: デフォルトの名無しさん [] 2023/02/20(月) 01:48:53.40 ID:4kHRqek0(2/5) AAS
>>427 js
(today, x) => range(x).map((i) => {
while(!isBusiness(today + x)) today ++
return today
})
434: デフォルトの名無しさん [] 2023/02/20(月) 01:51:51.59 ID:4kHRqek0(3/5) AAS
>>431431(1): 蟻人間 ◆T6xkBnTXz7B0 [sage] 2023/02/20(月) 01:07:33.83 ID:S/Y0RwmV(6/10) AAS
お題: 英文の各単語の先頭の文字を大文字にせよ。
「The quick brown fox jumps over the lazy dog.」→「The Quick Brown Fox Jumps Over The Lazy Dog.」
js
text.split(' ').map(([h, ...word}) => h.toUpperCase() + word).join(' ' )
438: デフォルトの名無しさん [] 2023/02/20(月) 02:37:40.70 ID:4kHRqek0(4/5) AAS
>>437
(word) =>
isNotKasan(word)
? word
: word.endsWith('s') || word.endsWith('sh')
? word + 'es'
: word.endsWith('y')
? word.slice(0, -1) + 'ies'
: word + 's'
440: デフォルトの名無しさん [] 2023/02/20(月) 02:49:12.44 ID:4kHRqek0(5/5) AAS
ts
(word: string) =>
蟻(word) ?? (
isNotKasan(word)
? word
: word.endsWith('s') || word.endsWith('sh')
? word + 'es'
: word.endsWith('y')
? word.slice(0, -1) + 'ies'
: word + 's')
type 未定義の処理結果 = string
declare function 蟻(word: string): 未定義の処理結果 | null;
上下前次1-新書関写板覧索設栞歴
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル
ぬこの手 ぬこTOP 0.053s